ngryman / jquery.finger

:v: jQuery touch & gestures, fingers in the nose.
https://ngryman.sh/jquery.finger/
MIT License
423 stars 66 forks source link

tap event firing twice on togglable elements #30

Closed guanzo closed 8 years ago

guanzo commented 9 years ago

Hey, your script works great except for one thing. It seems that when i tap on togglable elements the tap event is fired twice.

Heres the console log on a tap. The element is shown then immediately hidden.

n.Event {type: "tap", x: 825, y: 36, orientation: null, end: false…} index.js:498 n.Event {originalEvent: n.Event, type: "tap", isDefaultPrevented: function, timeStamp: 1415683966457, jQuery211008474522363394499: true…}


If i do a press event, the script reads it as a tap and my element is correctly shown/hidden.

n.Event {originalEvent: n.Event, type: "tap", isDefaultPrevented: function, timeStamp: 1415683971257, jQuery211008474522363394499: true…}

ngryman commented 9 years ago

Hey, thanks for your feedback. Is is possible to link me a jsfiddle to illustrate your problem?

Thanks!

ngryman commented 8 years ago

Closing because no reproducible example and it's kind of old.