pukhalski / tap

1Kb library for easy unified handling of user interactions such as mouse, touch and pointer events.
https://github.com/pukhalski/tap/archive/master.zip
MIT License
527 stars 45 forks source link

Fantom click #3

Closed bazilio91 closed 10 years ago

bazilio91 commented 10 years ago

Tested on iphone 5s safari (iOS 7). Tap on green link causes click event on red link

http://fiddle.jshell.net/bazilio91/A3vLn/show/light/ http://jsfiddle.net/bazilio91/A3vLn/

pukhalski commented 10 years ago

Thanks, will find out a solution.

bazilio91 commented 10 years ago

similar issue https://github.com/ftlabs/fastclick/issues/27

larchanka commented 10 years ago

@bazilio91

you can fix it with setTimeout to 0

http://jsfiddle.net/A3vLn/13/

bazilio91 commented 10 years ago

@larchanka I've tried your version with 0, 10, and 100ms timeout and it still failing.

pukhalski commented 10 years ago

@bazilio91, could you please check it with e.preventDefault on tap? It should fix the issue for now.

bazilio91 commented 10 years ago

Seems to be fixed. Thanks!