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

Unified Diff: content/common/input/input_event_utils.cc

Issue 1716493002: Enable gesture events for wheel events on all platforms other that OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_4
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/input_event_utils.cc
diff --git a/content/common/input/input_event_utils.cc b/content/common/input/input_event_utils.cc
index 925452f56d9bb821465afb28bac9dde72f0813a8..6bd9eaeb03013d6cb86b3edba5a38f0ab2a3236e 100644
--- a/content/common/input/input_event_utils.cc
+++ b/content/common/input/input_event_utils.cc
@@ -11,7 +11,13 @@ namespace content {
bool UseGestureBasedWheelScrolling() {
base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
+// TODO(dtapuska): OSX has special code to deal with mouse wheel
+// and overscroll that needs to be fixed. crbug.com/587979
+#if defined(OS_MACOSX)
return cmd->HasSwitch(switches::kEnableWheelGestures);
+#else
+ return !cmd->HasSwitch(switches::kDisableWheelGestures);
+#endif
}
} // namespace content
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698