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

responsiveFallback problem encountered: multiple swipe event binding #285

Open
TommasoBagassi opened this issue Nov 30, 2015 · 3 comments
Open

Comments

@TommasoBagassi
Copy link

I came across a bug when activating the responsiveFallback option: it seemed that if that was set at around 600 i would get multiple swipe events bound (to be precise they would be bound 4 times).

I solved this, at the moment, by unbinding 'touchstart', 'touchmove', 'swipeUp' and 'swipeDown' before binding them (lines 44 and 51 inside swipeEvents, line 249 inside responsive function and 314)
For example:

$this.unbind('touchstart').bind('touchstart', touchstart);

Not sure if this is the optimal solution but at the moment it solved the issue

@shiv-allva
Copy link

Thanks Tom! it worked for me

@burgyl
Copy link

burgyl commented Oct 8, 2017

Thank's ! It worked for me too

@Le-frenchman
Copy link

Thanks a lot !! Fix works perfectly. Should be added to the source code because it's a huge 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

4 participants