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

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

Issue 120203003: [Android] Send TapCancel if necessary when a touch gesture is consumed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More indentation fixes Created 7 years 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 | content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java » ('j') | 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 528fb4c706698d0addb6f70142b226b58fffa81e..b4b852415c4ae0682b8f8e7a081b1e614404e8f9 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
@@ -993,6 +993,7 @@ class ContentViewGestureHandler implements LongPressDelegate {
case INPUT_EVENT_ACK_STATE_IGNORED:
if (mTouchHandlingState != JAVASCRIPT_CONSUMING_GESTURE
&& ackedEvent.getActionMasked() != MotionEvent.ACTION_DOWN) {
+ sendTapCancelIfNecessary(ackedEvent);
resetGestureHandlers();
} else {
mZoomManager.passTouchEventThrough(ackedEvent);
« no previous file with comments | « no previous file | content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698