-
Notifications
You must be signed in to change notification settings - Fork 59
iOS 8 tap issues #11
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
Comments
The |
That's what I figured. Unfortunately in Phonegap on IOS 8 if you hold for over 200ms no tap event is fired. Only quick taps seem to work.
|
And that's what a tap event it's supposed to be! If you hold your finger It's not a tap anymore so it works perfectly. If you want to change this behavior you can change the |
can’t agree with that. apps listen to tap events instead of click events. so if my tap takes longer than 200ms i can’t detect it anymore? that’s clearly a bug to me. and TAP_THRESHOLD doesn’t fix that, as if you make it 300ms then the tap delay is as slow as the click delay. In fact 200ms isn’t even much faster than the 300ms delay you get with native click behaviour. That’s not how any of the other libs like FastClick work for example. I’m pretty sure you can still detect double taps if you listen to touchend instead of touchstart. Two touchend events within a certain time threshold can be considered a double tap. That makes more sense to me than having a timeout listening to touchstart, unless I’m missing something.
|
Ok It sounds a good idea, I will try the other way around using the |
Let me know if now it works better |
Looks better, but still not sure if setTimeout is at all necessary. You could just fire a tap event on touchEnd. And if there's another tap within 200ms then also fire a double-tap. I believe this is more inline with how iOS Gesture Recognizer works:
|
Ok it makes sense to trigger first a |
Thanks for an awesome library, I've been using something similar that I wrote myself for https://github.com/techlayer/espresso.js
Was wondering why the tap event isn't firing immediately after a touchEnd, but instead waits 200ms? Can't seem to wrap my head around that design decision, but you must have a reason.
On iOS 8 both a tap and a click event seem to get fired. Check this thread:
ftlabs/fastclick#262
This article sheds some light on the iOS 8 issues:
http://developer.telerik.com/featured/300-ms-click-delay-ios-8/
The text was updated successfully, but these errors were encountered: