mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-27 01:35:40 -05:00
Touch properties update
This commit is contained in:
parent
242966790a
commit
49b1139b4f
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue