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); |