mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2024-11-27 01:35:40 -05:00
Fix for LongPressGesture to work correctly with minPressDuration of zero (and the new IDLE state)
This commit is contained in:
parent
a449965e39
commit
13231a4708
1 changed files with 2 additions and 9 deletions
|
@ -95,16 +95,9 @@ package org.gestouch.gestures
|
|||
{
|
||||
_numTouchesRequiredReached = true;
|
||||
_timer.reset();
|
||||
_timer.delay = minPressDuration;
|
||||
if (minPressDuration > 0)
|
||||
{
|
||||
_timer.delay = minPressDuration || 1;
|
||||
_timer.start();
|
||||
}
|
||||
else
|
||||
{
|
||||
timer_timerCompleteHandler();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue