mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-23 15:57:54 -05:00
DragGesture bugfix: condition for dispatch DragGestureEvent with END phase was wrong.
This commit is contained in:
parent
5b0ae2ef00
commit
caa1b363f9
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue