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:
Pavel fljot 2011-06-24 21:26:46 +03:00
parent 3be92fb21f
commit c3d637b4a7

View file

@ -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));
}