Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Speed up mouse wheel in jScrollPane (jQuery)

I have a div with a fixed height and in it a ul-list and many li-items. I apply to the div a jScrollPane for which I want to customize the appearance of the scrollbar. My code is like:

$(function() {
    $('.myDiv').jScrollPane( { showArrows: true, arrowScrollOnHover: true, wheelSpeed: 120 });
});

As jScrollPane I use the scripts of http://jscrollpane.kelvinluck.com and it is kind of working. But the speed of the mouse wheel (velocity of scrolling) is much too slow although I tried to set the speed up as you can see in my example above.

Does anybody has had the same effect and can give me a hint how I can speed it up?

like image 485
parascus Avatar asked Jun 17 '13 18:06

parascus


1 Answers

You have to define the wheel speed when you initialize the plugin like this:

$('.scroll-pane').jScrollPane({
    mouseWheelSpeed: 50
});
like image 101
Abdullah SARGIN Avatar answered Oct 03 '22 20:10

Abdullah SARGIN