That isn't currently possible and isn't the way that native scrollbars
work so I probably won't implement it as part of the plugin. However,
you could try and implement it yourself something like this (untested):
$(function()
{
var scrollPane = $('.scroll-pane').jScrollPane({clickOnTrack:false,
animateScroll:true});
var api = scrollPane.data('api');
scrollPane.find('jspTrack').bind(
'click',
function(e)
{
var track = $(this);
var percentScrolled = (e.pageY - track.position().top) /
track.height();
api.scrollToY(percentScrolled *
api.getContentPane().height(), true);
}
);
}
);
Hope that this works and is helpful. Looking at it I realise that there
could be a few methods added to the API to make this much easier. I've
added a ticket to github and I'll add these methods when I get a chance:
http://github.com/vitch/jScrollPane/issues/issue/19
Cheers,
Kelvin :)