Fix for LongPressGesture to work correctly with minPressDuration of zero (and the new IDLE state)

This commit is contained in:
Pavel fljot 2012-03-14 17:49:49 +02:00
parent a449965e39
commit 13231a4708

View file

@ -95,15 +95,8 @@ package org.gestouch.gestures
{
_numTouchesRequiredReached = true;
_timer.reset();
_timer.delay = minPressDuration;
if (minPressDuration > 0)
{
_timer.start();
}
else
{
timer_timerCompleteHandler();
}
_timer.delay = minPressDuration || 1;
_timer.start();
}
}