mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Fix SwipeGesture slop logic (no direction)
This commit is contained in:
parent
06070d8579
commit
f50ae0ba3a
1 changed files with 2 additions and 1 deletions
|
@ -185,7 +185,8 @@ package org.gestouch.gestures
|
|||
|
||||
if (_noDirection)
|
||||
{
|
||||
if (avrgVel >= minVelocity || offsetLength >= minOffset)
|
||||
if ((offsetLength > slop || slop != slop) &&
|
||||
(avrgVel >= minVelocity || offsetLength >= minOffset))
|
||||
{
|
||||
setState(GestureState.RECOGNIZED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue