mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Fixed location for TapGesture
This commit is contained in:
parent
e15c7e7318
commit
696b6367f2
1 changed files with 1 additions and 1 deletions
|
@ -106,6 +106,7 @@ package org.gestouch.gestures
|
||||||
if (touchesCount == numTouchesRequired)
|
if (touchesCount == numTouchesRequired)
|
||||||
{
|
{
|
||||||
_numTouchesRequiredReached = true;
|
_numTouchesRequiredReached = true;
|
||||||
|
updateLocation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +137,6 @@ package org.gestouch.gestures
|
||||||
|
|
||||||
if (_tapCounter == numTapsRequired)
|
if (_tapCounter == numTapsRequired)
|
||||||
{
|
{
|
||||||
updateLocation();
|
|
||||||
if (setState(GestureState.RECOGNIZED) && hasEventListener(TapGestureEvent.GESTURE_TAP))
|
if (setState(GestureState.RECOGNIZED) && hasEventListener(TapGestureEvent.GESTURE_TAP))
|
||||||
{
|
{
|
||||||
dispatchEvent(new TapGestureEvent(TapGestureEvent.GESTURE_TAP, false, false, GestureState.RECOGNIZED,
|
dispatchEvent(new TapGestureEvent(TapGestureEvent.GESTURE_TAP, false, false, GestureState.RECOGNIZED,
|
||||||
|
|
Loading…
Reference in a new issue