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

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

Issue 16963007: Remove acknowledge timeout for TouchEnd and TouchCancel events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
index c1888bf496f28bbf0ed8eef9a84aa962042f6e00..5fbdb712b91ad720796602a447406f556a0e78a4 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
@@ -793,7 +793,10 @@ class ContentViewGestureHandler implements LongPressDelegate {
mTouchCancelEventSent = false;
if (mMotionEventDelegate.sendTouchEvent(event.getEventTime(), type, pts)) {
- mTouchEventTimeoutHandler.start(event.getEventTime(), pts);
+ if (event.getAction() != MotionEvent.ACTION_UP
+ && event.getAction() != MotionEvent.ACTION_CANCEL) {
+ mTouchEventTimeoutHandler.start(event.getEventTime(), pts);
+ }
return EVENT_FORWARDED_TO_NATIVE;
}
} else if (!mTouchCancelEventSent) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698