Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom scrollbar - mouse wheel too slow

I'm working on a site which contains a div with a custom scroll bar. My problem is that the mouse wheel doesn't work properly, it's too slow.

The site is http://alaaelseifi.net/ and the custom scroll library is from http://manos.malihu.gr/

The script issupposed to be like this:

$(window).load(function() {
    $(".scroll-pane").mCustomScrollbar();
    //code that make scrolling with mouse faster
});
like image 406
Husamuddin Avatar asked Mar 21 '13 11:03

Husamuddin


2 Answers

I also noticed that the "slow" feeling on my site was due to the fact that scroll inertia is turned on by default if you use the following it will turn that off and cause the bar to not lag trying :

$(".scroll-pane").mCustomScrollbar({
    scrollInertia: 0
});
like image 84
Melinda Rabenstein Avatar answered Sep 28 '22 05:09

Melinda Rabenstein


This worked for me.

scrollInertia: 0
mouseWheelPixels: 170,
autoDraggerLength:false,
like image 26
Junaid Avatar answered Sep 28 '22 07:09

Junaid