Small slop calculation optimization in MovingGestureBase

This commit is contained in:
Pavel fljot 2011-05-05 19:15:22 +03:00
parent b765eba46a
commit 3be92fb21f

View file

@ -131,6 +131,11 @@ package org.gestouch.gestures
protected function _checkSlop(moveDelta:Point):Boolean
{
var slopPassed:Boolean = false;
if (!(slop > 0))
{
// return true immideately if slop is 0 or NaN
return true;
}
if (_canMoveHorizontally && _canMoveVertically)
{