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

Bug: chrome android click is not prevented #43

Open
mauron85 opened this issue Feb 26, 2015 · 0 comments
Open

Bug: chrome android click is not prevented #43

mauron85 opened this issue Feb 26, 2015 · 0 comments

Comments

@mauron85
Copy link

Expected:
onTouchStart event set usingTouch to true, which should prevent extra click event in chrome for android.

Actual:
After touchend event usingTouch is set to false and click event is fired. As result callback is called twice (tap + click)

The problem is that idleStateInit is called for unknown reason and this.usingTouch is set there to false. So next onMouseUp event is fired, usingTouch is false and as result callback is called twice (once by touchstart and once by mouseup)

Following call stack in chrome for android confirms that:

idleStateInit (slip3.js:207)
window.Slip.Slip.setState (slip3.js:508)
window.Slip.Slip.states.undecided.onEnd (slip3.js:265)
window.Slip.Slip.onTouchEnd (slip3.js:694)

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