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