mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -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
|
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);
|
||||||
{
|
|
||||||
setState(GestureState.FAILED);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (state == GestureState.BEGAN || state == GestureState.CHANGED)
|
else if (state == GestureState.BEGAN || state == GestureState.CHANGED)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue