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

DoubleTap is way too picky #66

Open
Yardarrat opened this issue Jun 1, 2013 · 4 comments
Open

DoubleTap is way too picky #66

Yardarrat opened this issue Jun 1, 2013 · 4 comments

Comments

@Yardarrat
Copy link

seems like the max time between two taps to be interpreted as a doubleTap is hard coded to 250ms. is that right?
Well, testing on iOS that seems not to be enough. it's less then 10% success...

@joseym
Copy link

joseym commented Jun 3, 2013

👍 The ipad web app I'm working on detects dbltaps as taps so methods tied to the event aren't getting fired.

@nealrs
Copy link

nealrs commented Feb 12, 2014

+1 - i was convinced my code was broken until i mysteriously tapped fast enough.

@swleighton
Copy link

If you want to increase the duration between taps you also need to adjust the delay (currently 100) on:
TOUCH_TIMEOUT = setTimeout((function() {
_trigger("singleTap");
return _cleanGesture();
}), 100);

And also increase 250 in:

if (fingers === 1) {
if (fingers >= 1) {
alert(delta);
GESTURE.gap = delta > 0 && delta <= 250;
}

300 on both of these worked well for me :)

@akmur
Copy link

akmur commented Oct 13, 2014

Thanks guys :)

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

5 participants