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

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

Issue 392943002: Fix Handle above IME issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to latest Created 6 years, 5 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/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 004aefd7694173df61b79a8a281c5d1447806afc..1a02868bb347e7b05348df2e1860407d1b8e93d9 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -1171,10 +1171,12 @@ public class ContentViewCore
public boolean onTouchEvent(MotionEvent event) {
TraceEvent.begin("onTouchEvent");
try {
- cancelRequestToScrollFocusedEditableNodeIntoView();
-
int eventAction = event.getActionMasked();
+ if (eventAction == MotionEvent.ACTION_DOWN) {
+ cancelRequestToScrollFocusedEditableNodeIntoView();
+ }
+
if (isSPenSupported(mContext))
eventAction = convertSPenEventAction(eventAction);
« 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