jQuery-slimScroll icon indicating copy to clipboard operation
jQuery-slimScroll copied to clipboard

Scrolling for mobile platform (after the "touchend" event)

Open GabbasovDinar opened this issue 7 years ago • 1 comments

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

GabbasovDinar avatar Jan 22 '18 13:01 GabbasovDinar

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;

  • Changevar speedfix value to your requirement.

Thanks, Please ask moderators to make this plugin living else it will gets obsolete.

MR-AMDEV avatar Aug 03 '18 10:08 MR-AMDEV