Fix SwipeGesture slop logic (no direction)

This commit is contained in:
Pavel fljot 2012-09-20 15:07:01 +03:00
parent 06070d8579
commit f50ae0ba3a

View file

@ -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);
}