mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-27 01:35:40 -05:00
Small slop calculation optimization in MovingGestureBase
This commit is contained in:
parent
b765eba46a
commit
3be92fb21f
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue