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

Some devices fire a click event anyway #5

Open
alinnert opened this issue Oct 24, 2013 · 3 comments
Open

Some devices fire a click event anyway #5

alinnert opened this issue Oct 24, 2013 · 3 comments

Comments

@alinnert
Copy link

I've noticed a very wide spread problem with touch events on some devices. It appears with every touch event library (like this one) I've tested so far as well as an own minimal solution.
It appears on the default Android browser for example, and does not appear on iOS and Chrome for Android.
It seems that an additional click event is fired right after the touch event. The problem is: the touch and the click event only share coordinates, not the tapped element.

This is a problem when you develop a "one page app" and you change the content by tapping an element. When a link appears at the exact spot where you tapped the screen that link gets triggered as well. I don't know what exactly happens, but this is, what it feels like and I don't know how to deal with this.
Does anyone know a solution to that problem?

This is not just a ask for help. If someone knows a solution it should be implemented into this script as well ;)

@jonathanstark
Copy link

@alinnert this is a known (and very annoying) issue on android. Google for "ghost click android" for the latest developments. I haven't tested for it in a while so not sure if it's still an issue or not.

@jonathanong
Copy link

should be fine if you prevent default. can you confirm?

@alinnert
Copy link
Author

alinnert commented Feb 1, 2016

@jonathanong I'm not working on that project any longer. I can't check it. Sorry.

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

3 participants