Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index d3c0879cd3224e48ce97405c2b894536108b378e..770392223fb4d89a26343cb1ac08980fc51ef21d 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -940,6 +940,11 @@ bool RenderWidgetHostViewAndroid::OnTouchEvent( |
ComputeEventLatencyOSTouchHistograms(event); |
+ // Receiving any other touch event before the double-tap timeout expires |
+ // cancels opening the spellcheck menu. |
+ if (ime_adapter_android_) |
+ ime_adapter_android_->StopSpellCheckMenuTimer(); |
+ |
// If a browser-based widget consumes the touch event, it's critical that |
// touch event interception be disabled. This avoids issues with |
// double-handling for embedder-detected gestures like side swipe. |