Improve internal algorithm for TapGesture

This commit is contained in:
Pavel fljot 2012-07-13 18:08:07 +03:00
parent ed2efc1954
commit c5f91e6de1

View file

@ -14,7 +14,6 @@ package org.gestouch.gestures
*/
[Event(name="gestureTap", type="org.gestouch.events.TapGestureEvent")]
/**
* TODO: check failing conditions (iDevice)
*
* @author Pavel fljot
*/
@ -22,7 +21,7 @@ package org.gestouch.gestures
{
public var numTouchesRequired:uint = 1;
public var numTapsRequired:uint = 1;
public var slop:Number = Gesture.DEFAULT_SLOP;
public var slop:Number = Gesture.DEFAULT_SLOP << 2;//iOS has 45px for 132 dpi screen
public var maxTapDelay:uint = 400;
public var maxTapDuration:uint = 1500;
@ -125,7 +124,6 @@ package org.gestouch.gestures
{
if (!_numTouchesRequiredReached)
{
//TODO: check this condition on iDevice
setState(GestureState.FAILED);
}
else if (touchesCount == 0)