mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
DragGesture#onTouchMove() fixed.
Before it was dispatching event with UPDATE phase just after event with BEGIN phase (so two events during one method call), which could result double offsets in UI layer.
This commit is contained in:
parent
3be92fb21f
commit
c3d637b4a7
1 changed files with 1 additions and 2 deletions
|
@ -142,8 +142,7 @@ package org.gestouch.gestures
|
|||
_dispatch(new DragGestureEvent(DragGestureEvent.GESTURE_DRAG, true, false, GesturePhase.BEGIN, _lastLocalCentralPoint.x, _lastLocalCentralPoint.y, 1, 1, 0, _centralPoint.lastMove.x, _centralPoint.lastMove.y));
|
||||
}
|
||||
}
|
||||
|
||||
if (_slopPassed)
|
||||
else
|
||||
{
|
||||
_dispatch(new DragGestureEvent(DragGestureEvent.GESTURE_DRAG, true, false, GesturePhase.UPDATE, _lastLocalCentralPoint.x, _lastLocalCentralPoint.y, 1, 1, 0, _centralPoint.lastMove.x, _centralPoint.lastMove.y));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue