malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.51k forks source link

How to disable scroll intertia when use dragger #370

Open vkovalskiy opened 8 years ago

vkovalskiy commented 8 years ago

Mousewheel inertia works great, but as a very strange side-effect it also works when the user scrolls using dragger. So that he moves the dragger and does not immediately see the content - instead it scrolls gradually to the point. The native scroll behavior is not like that and it confuses the users. Is there any param to disable this effect ?

malihu commented 8 years ago

Scrolling inertia is set by design and it's applied globally. You can change it using the scrollInertia option parameter. To completely disable, set it to zero (scrollInertia: 0). The default value is 950 (stands for milliseconds).