From 13231a4708f10c749b85eb1e5d36866161c7de2f Mon Sep 17 00:00:00 2001 From: Pavel fljot Date: Wed, 14 Mar 2012 17:49:49 +0200 Subject: [PATCH] Fix for LongPressGesture to work correctly with minPressDuration of zero (and the new IDLE state) --- src/org/gestouch/gestures/LongPressGesture.as | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/org/gestouch/gestures/LongPressGesture.as b/src/org/gestouch/gestures/LongPressGesture.as index 932aa17..a99ea6b 100644 --- a/src/org/gestouch/gestures/LongPressGesture.as +++ b/src/org/gestouch/gestures/LongPressGesture.as @@ -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(); } }