Index: android_webview/lib/main/aw_main_delegate.cc |
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc |
index f94d49882278a31fa284d475f7bd9dfc664198be..c7edbe49d59a8397aaf5bc763373c4209301423f 100644 |
--- a/android_webview/lib/main/aw_main_delegate.cc |
+++ b/android_webview/lib/main/aw_main_delegate.cc |
@@ -35,6 +35,7 @@ |
#include "gpu/command_buffer/client/gl_in_process_context.h" |
#include "gpu/command_buffer/service/gpu_switches.h" |
#include "media/base/media_switches.h" |
+#include "ui/events/gesture_detection/gesture_configuration.h" |
namespace android_webview { |
@@ -60,6 +61,12 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
BrowserViewRenderer::CalculateTileMemoryPolicy(); |
+ // WebView apps can override WebView#computeScroll to achieve custom |
+ // scroll/fling. As a result, fling animations may not be ticked, potentially |
+ // confusing the tap suppression controller. Simply disable it for WebView. |
+ ui::GestureConfiguration::GetInstance() |
+ ->set_fling_touchscreen_tap_suppression_enabled(false); |
+ |
base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); |
cl->AppendSwitch(switches::kUseIpcCommandBuffer); |
cl->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); |