diff --git a/src/org/gestouch/core/Touch.as b/src/org/gestouch/core/Touch.as index dddcb81..9a707fa 100644 --- a/src/org/gestouch/core/Touch.as +++ b/src/org/gestouch/core/Touch.as @@ -43,11 +43,14 @@ package org.gestouch.core { _location = value; _beginLocation = _location.clone(); + _previousLocation = _location.clone(); } gestouch_internal function updateLocation(x:Number, y:Number):void { if (_location) { + _previousLocation.x = _location.x; + _previousLocation.y = _location.y; _location.x = x; _location.y = y; } @@ -58,6 +61,13 @@ package org.gestouch.core } + protected var _previousLocation:Point; + public function get previousLocation():Point + { + return _previousLocation.clone(); + } + + protected var _beginLocation:Point; public function get beginLocation():Point {