Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java

Issue 120513005: [Android] Perform eager gesture recognition on MotionEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Findbugs fix Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java b/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
index 3a52db4015a8f56f8b68f8c3cc3a5b6458158e83..3f5dae0aaf8d1360d8ce0927761472615d760773 100644
--- a/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
+++ b/content/public/android/java/src/org/chromium/content/browser/third_party/GestureDetector.java
@@ -580,6 +580,9 @@ public class GestureDetector {
if (mIsDoubleTapping) {
// Give the move events of the double-tap
handled |= mDoubleTapListener.onDoubleTapEvent(ev);
+ if (mIsLongpressEnabled) {
+ mHandler.removeMessages(LONG_PRESS);
+ }
} else if (mAlwaysInTapRegion) {
final int deltaX = (int) (focusX - mDownFocusX);
final int deltaY = (int) (focusY - mDownFocusY);

Powered by Google App Engine
This is Rietveld 408576698