mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Minor tabs and spaces cleanup
This commit is contained in:
parent
cdd90d7479
commit
09c35a5d97
4 changed files with 14 additions and 13 deletions
|
@ -81,7 +81,7 @@ package org.gestouch.core
|
|||
var target:DisplayObject = genericTarget as DisplayObject;
|
||||
while (target)
|
||||
{
|
||||
list[i] = target;
|
||||
list[i] = target;
|
||||
target = target.parent;
|
||||
i++;
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ package org.gestouch.core
|
|||
if (targetGestures.length > 1)
|
||||
{
|
||||
targetGestures.splice(targetGestures.indexOf(gesture), 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
delete _gesturesForTargetMap[target];
|
||||
|
@ -145,11 +145,12 @@ package org.gestouch.core
|
|||
|
||||
gestouch_internal function onGestureRecognized(gesture:Gesture):void
|
||||
{
|
||||
const target:Object = gesture.target;
|
||||
|
||||
for (var key:Object in _gesturesMap)
|
||||
{
|
||||
var otherGesture:Gesture = key as Gesture;
|
||||
var target:Object = gesture.target;
|
||||
var otherTarget:Object = otherGesture.target;
|
||||
var otherTarget:Object = otherGesture.target;
|
||||
|
||||
// conditions for otherGesture "own properties"
|
||||
if (otherGesture != gesture &&
|
||||
|
@ -159,7 +160,7 @@ package org.gestouch.core
|
|||
{
|
||||
if (otherTarget == target ||
|
||||
gesture.targetAdapter.contains(otherTarget) ||
|
||||
otherGesture.targetAdapter.contains(target)
|
||||
otherGesture.targetAdapter.contains(target)
|
||||
)
|
||||
{
|
||||
var gestureDelegate:IGestureDelegate = gesture.delegate;
|
||||
|
@ -172,7 +173,7 @@ package org.gestouch.core
|
|||
{
|
||||
otherGesture.setState_internal(GestureState.FAILED);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -300,9 +301,9 @@ package org.gestouch.core
|
|||
while (i-- > 0)
|
||||
{
|
||||
gesture = gesturesForTouch[i] as Gesture;
|
||||
|
||||
|
||||
if (gesture.state != GestureState.FAILED && gesture.isTrackingTouch(touch.id))
|
||||
{
|
||||
{
|
||||
gesture.touchEndHandler(touch);
|
||||
}
|
||||
}
|
||||
|
@ -323,7 +324,7 @@ package org.gestouch.core
|
|||
//
|
||||
// Event handlers
|
||||
//
|
||||
//--------------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
protected function gestureTarget_addedToStageHandler(event:Event):void
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ package org.gestouch.extensions.starling
|
|||
var target:DisplayObject = genericTarget as DisplayObject;
|
||||
while (target)
|
||||
{
|
||||
list[i] = target;
|
||||
list[i] = target;
|
||||
target = target.parent;
|
||||
i++;
|
||||
}
|
||||
|
|
|
@ -97,8 +97,8 @@ package org.gestouch.gestures
|
|||
public function set target(value:Object):void
|
||||
{
|
||||
var target:Object = this.target;
|
||||
if (target == value)
|
||||
return;
|
||||
if (target == value)
|
||||
return;
|
||||
|
||||
uninstallTarget(target);
|
||||
_targetAdapter = value ? Gestouch.gestouch_internal::createGestureTargetAdapter(value) : null;
|
||||
|
@ -434,7 +434,7 @@ package org.gestouch.gestures
|
|||
}
|
||||
}
|
||||
|
||||
var oldState:uint = _state;
|
||||
var oldState:uint = _state;
|
||||
_state = newState;
|
||||
|
||||
if (((GestureState.CANCELLED | GestureState.RECOGNIZED | GestureState.ENDED | GestureState.FAILED) & _state) > 0)
|
||||
|
|
Loading…
Reference in a new issue