fljot / Gestouch

Gestouch: multitouch gesture recognition library for Flash (ActionScript) development.
MIT License
355 stars 85 forks source link

TapGesture maxTapDelay #31

Closed sidesixmedia closed 11 years ago

sidesixmedia commented 11 years ago

Hi fljot,

We don't see a difference in gesture recognition timing when we change the tap.maxTapDelay value. Shouldn't this alter the timer duration associated with the TouchEnd detection of the TapGesture class or is that not its intended purpose?

We're still working from the slop-hotfix branch you created a few weeks back.

Thank you!

fljot commented 11 years ago

maxTapDelay is the max delay between taps (for multi-taps such as double-tap when numTapsRequired = 2). Are you using this property for that purpose?

sidesixmedia commented 11 years ago

Ah, then no. We thought it was a duration to adjust how long the user has to make a complete Tap gesture (start touch time + end touch time < maxTapDelay). Didn't realize it is for multi-touch scenarios.

So there isn't a way to alter the gesture recognition time for Taps?

fljot commented 11 years ago

maxTapDuration (in ms, default is 1500)

And why do you want to change that? This is the value they have on iOS and I think they chose it for a reason =)

sidesixmedia commented 11 years ago

Because one size rarely fits all =) We don't have specific need to change the default, but thought there would be an option to do so since some of the other gestures support altering times and/or velocities. Consider this issue closed!

fljot commented 11 years ago

And that's why I left it public, possible to change =)