jQuery-slimScroll
jQuery-slimScroll copied to clipboard
Scrolling for mobile platform (after the "touchend" event)
When you take off your finger from screen, scrolling stops immediately. But for default event (without this plugin), scrolling continues.
Steps to reproduce:
- open the website from a mobile platform
- scroll down / up and take off your finger
Current behavior:
- It doesn't scroll after you take off your finger
Expected behavior: The scrollbar scrolls down / up for without touching when you take off finger, as for default event
Hi @GabbasovDinar , Its the issue that exist with slimscroll it needs moderation but i have found a temporary workaround for this by changing a few lines of codes .
-
Let the touchScrollStep to default i.e do not set it.
-
Check the code in slimscroll.js file around line 358 .
-
Replace
delta = (y > 0) ? Math.ceil(delta): Math.floor(delta);
With -
var speedfix = 10; delta = (y > 0) ? Math.ceil(delta) + speedfix : Math.floor(delta)- speedfix;
-
Change
var speedfix
value to your requirement.
Thanks, Please ask moderators to make this plugin living else it will gets obsolete.