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

Unified Diff: content/browser/renderer_host/input/input_router_config_helper.cc

Issue 1264963003: Disable tap suppression controller on Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/renderer_host/input/input_router_config_helper.cc
diff --git a/content/browser/renderer_host/input/input_router_config_helper.cc b/content/browser/renderer_host/input/input_router_config_helper.cc
index d3b229639d4caea9b67d13d6a56e45ff79a8ca30..bc31c98e01d864e01329132592cf82b8ce812ba4 100644
--- a/content/browser/renderer_host/input/input_router_config_helper.cc
+++ b/content/browser/renderer_host/input/input_router_config_helper.cc
@@ -100,10 +100,18 @@ TouchEventQueue::Config GetTouchEventQueueConfig() {
} // namespace
-InputRouterImpl::Config GetInputRouterConfigForPlatform() {
+InputRouterImpl::Config GetInputRouterConfigForPlatform(
+ bool has_browser_compositor) {
InputRouterImpl::Config config;
config.gesture_config = GetGestureEventQueueConfig();
+#if defined(OS_ANDROID)
+ config.gesture_config.touchscreen_tap_suppression_config.enabled &=
+ has_browser_compositor;
+#endif
config.touch_config = GetTouchEventQueueConfig();
+ // Disable tap suppression controller on Android WebView, because the WebView
+ // app can customize fling/scroll, and never ticks the animation, thus
+ // confusing tap suppression controller.
return config;
}

Powered by Google App Engine
This is Rietveld 408576698