DragGesture bugfix: condition for dispatch DragGestureEvent with END phase was wrong.

This commit is contained in:
Pavel fljot 2011-09-05 17:49:09 +03:00
parent 5b0ae2ef00
commit caa1b363f9

View file

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