From caa1b363f9c45dd7f5565bab0d0502bb7caef1f7 Mon Sep 17 00:00:00 2001 From: Pavel fljot Date: Mon, 5 Sep 2011 17:49:09 +0300 Subject: [PATCH] DragGesture bugfix: condition for dispatch DragGestureEvent with END phase was wrong. --- src/org/gestouch/gestures/DragGesture.as | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/org/gestouch/gestures/DragGesture.as b/src/org/gestouch/gestures/DragGesture.as index 70ab7e7..a8fd75e 100644 --- a/src/org/gestouch/gestures/DragGesture.as +++ b/src/org/gestouch/gestures/DragGesture.as @@ -10,8 +10,6 @@ package org.gestouch.gestures import flash.geom.Point; - - /** * Tracks the drag. Event works nice with minTouchPointsCount = 1 and maxTouchPoaintsCount > 1. * @@ -131,7 +129,7 @@ package org.gestouch.gestures override public function onTouchEnd(touchPoint:TouchPoint):void { - var ending:Boolean = (_trackingPointsCount == minTouchPointsCount); + var ending:Boolean = (_slopPassed && _trackingPointsCount == minTouchPointsCount); _forgetPoint(touchPoint); _updateCentralPoint();