Reformat condition

This commit is contained in:
Pavel fljot 2012-03-06 23:27:39 +02:00
parent 7cdec34be4
commit 4e02d4ae63

View file

@ -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)
{