mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-27 01:35:40 -05:00
Target is now optional argument for gesture constructor (since I made target as getter AND setter recently)
This commit is contained in:
parent
289b3a800b
commit
151d0ddca6
8 changed files with 8 additions and 8 deletions
|
@ -70,7 +70,7 @@ package org.gestouch.gestures
|
|||
protected var _lastCentralPoint:Point;
|
||||
|
||||
|
||||
public function DoubleTapGesture(target:InteractiveObject, settings:Object = null)
|
||||
public function DoubleTapGesture(target:InteractiveObject = null, settings:Object = null)
|
||||
{
|
||||
super(target, settings);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ package org.gestouch.gestures
|
|||
*/
|
||||
public class DragGesture extends MovingGestureBase
|
||||
{
|
||||
public function DragGesture(target:InteractiveObject, settings:Object = null)
|
||||
public function DragGesture(target:InteractiveObject = null, settings:Object = null)
|
||||
{
|
||||
super(target, settings);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ package org.gestouch.gestures
|
|||
protected var _lastLocalCentralPoint:Point;
|
||||
|
||||
|
||||
public function Gesture(target:InteractiveObject, settings:Object = null)
|
||||
public function Gesture(target:InteractiveObject = null, settings:Object = null)
|
||||
{
|
||||
// Check if gesture reflects it's class properly
|
||||
reflect();
|
||||
|
|
|
@ -33,7 +33,7 @@ package org.gestouch.gestures
|
|||
protected var _thresholdTimer:Timer;
|
||||
|
||||
|
||||
public function LongPressGesture(target:InteractiveObject, settings:Object = null)
|
||||
public function LongPressGesture(target:InteractiveObject = null, settings:Object = null)
|
||||
{
|
||||
super(target, settings);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ package org.gestouch.gestures
|
|||
protected var _canMoveVertically:Boolean = true;
|
||||
|
||||
|
||||
public function MovingGestureBase(target:InteractiveObject, settings:Object = null)
|
||||
public function MovingGestureBase(target:InteractiveObject = null, settings:Object = null)
|
||||
{
|
||||
super(target, settings);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ package org.gestouch.gestures
|
|||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
public static function add(target:InteractiveObject, settings:Object = null):RotateGesture
|
||||
public static function add(target:InteractiveObject = null, settings:Object = null):RotateGesture
|
||||
{
|
||||
return new RotateGesture(target, settings);
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ package org.gestouch.gestures
|
|||
protected var _startTime:uint;
|
||||
|
||||
|
||||
public function SwipeGesture(target:InteractiveObject, settings:Object = null)
|
||||
public function SwipeGesture(target:InteractiveObject = null, settings:Object = null)
|
||||
{
|
||||
super(target, settings);
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ package org.gestouch.gestures
|
|||
//
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
public static function add(target:InteractiveObject, settings:Object = null):ZoomGesture
|
||||
public static function add(target:InteractiveObject = null, settings:Object = null):ZoomGesture
|
||||
{
|
||||
return new ZoomGesture(target, settings);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue