Fixed location for TapGesture

This commit is contained in:
Pavel fljot 2012-04-02 17:16:48 +03:00
parent e15c7e7318
commit 696b6367f2

View file

@ -106,6 +106,7 @@ package org.gestouch.gestures
if (touchesCount == numTouchesRequired)
{
_numTouchesRequiredReached = true;
updateLocation();
}
}
@ -136,7 +137,6 @@ package org.gestouch.gestures
if (_tapCounter == numTapsRequired)
{
updateLocation();
if (setState(GestureState.RECOGNIZED) && hasEventListener(TapGestureEvent.GESTURE_TAP))
{
dispatchEvent(new TapGestureEvent(TapGestureEvent.GESTURE_TAP, false, false, GestureState.RECOGNIZED,