Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GabbasovDinar opened this issue Jan 22, 2018 · 1 comment
Open

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

GabbasovDinar opened this issue Jan 22, 2018 · 1 comment

Comments

@GabbasovDinar
Copy link

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

@MR-AMDEV
Copy link

MR-AMDEV commented Aug 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants