mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-23 07:47:59 -05:00
Reformat condition
This commit is contained in:
parent
7cdec34be4
commit
4e02d4ae63
1 changed files with 2 additions and 6 deletions
|
@ -110,13 +110,9 @@ package org.gestouch.gestures
|
|||
|
||||
override protected function onTouchMove(touch:Touch):void
|
||||
{
|
||||
if (state == GestureState.POSSIBLE && slop > 0)
|
||||
if (state == GestureState.POSSIBLE && slop > 0 && touch.locationOffset.length > slop)
|
||||
{
|
||||
if (touch.locationOffset.length > slop)
|
||||
{
|
||||
setState(GestureState.FAILED);
|
||||
return;
|
||||
}
|
||||
setState(GestureState.FAILED);
|
||||
}
|
||||
else if (state == GestureState.BEGAN || state == GestureState.CHANGED)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue