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

Click on mobile triggers the move functions to be called multiple times #341

Open
Flyrell opened this issue Dec 3, 2018 · 0 comments
Open

Comments

@Flyrell
Copy link

Flyrell commented Dec 3, 2018

On mobile, click or mousedown events also triggers touchstart which triggers the touchmove event handler to be bind multiple times. Then, when navigating, the moveDown or moveUp functions will be called multiple times (# of clicks + 1), that means you'll end up at the different page.

The fix would be to bind the touchmove event only once or to unbind it before binding. Might be also useful to add some updates, etc. I'd like to contribute, but I have no idea when I'll have a free day to look at the issue.

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

1 participant