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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 1281553004: Disable tap suppression logic for WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 years, 4 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
« no previous file with comments | « android_webview/lib/DEPS ('k') | content/browser/renderer_host/input/input_router_config_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90d238904be3bfec3b7d11a8ddd3f598166ee691..5055a330d285e6dc2b8e0819cdeda5ee0de714fb 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -34,6 +34,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 {
@@ -59,6 +60,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(cc::switches::kEnableBeginFrameScheduling);
« no previous file with comments | « android_webview/lib/DEPS ('k') | content/browser/renderer_host/input/input_router_config_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698