QuoJS icon indicating copy to clipboard operation
QuoJS copied to clipboard

DoubleTap is way too picky

Open Yardarrat opened this issue 11 years ago • 4 comments

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...

Yardarrat avatar Jun 01 '13 08:06 Yardarrat

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

joseym avatar Jun 03 '13 17:06 joseym

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

nealrs avatar Feb 12 '14 07:02 nealrs

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 :)

swleighton avatar Apr 26 '14 17:04 swleighton

Thanks guys :)

akmur avatar Oct 13 '14 13:10 akmur