diff options
author | Romain Guy <romainguy@android.com> | 2009-05-29 13:53:16 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-05-29 13:53:16 -0700 |
commit | d1c67d42abdf41d10c9a7589da1e0088af1e123a (patch) | |
tree | a6fc0eeae8c9d694a44e598b710543a469c774f5 /core/java/android/gesture/GestureStroke.java | |
parent | d9cc7659fa9b8544e2a3ca7b7040fbd79afdf7ea (diff) | |
download | frameworks_base-d1c67d42abdf41d10c9a7589da1e0088af1e123a.zip frameworks_base-d1c67d42abdf41d10c9a7589da1e0088af1e123a.tar.gz frameworks_base-d1c67d42abdf41d10c9a7589da1e0088af1e123a.tar.bz2 |
Fixes #1878499.
Ignore touch up events that happen after a gesture was cancelled. This fix also improves performance by ignoring move events that are within the touch threshold.
Diffstat (limited to 'core/java/android/gesture/GestureStroke.java')
-rw-r--r-- | core/java/android/gesture/GestureStroke.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/gesture/GestureStroke.java b/core/java/android/gesture/GestureStroke.java index 90faaed..598eb85 100644 --- a/core/java/android/gesture/GestureStroke.java +++ b/core/java/android/gesture/GestureStroke.java @@ -30,7 +30,7 @@ import java.util.ArrayList; * A gesture stroke started on a touch down and ended on a touch up. */ public class GestureStroke { - static final float TOUCH_TOLERANCE = 3; + static final float TOUCH_TOLERANCE = 8; public final RectF boundingBox; |