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

Unified Diff: ui/events/gesture_detection/gesture_config_helper_aura.cc

Issue 243403002: Add multi-finger swipe detection to GestureDetector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test three finger swipe Created 6 years, 8 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: ui/events/gesture_detection/gesture_config_helper_aura.cc
diff --git a/ui/events/gesture_detection/gesture_config_helper_aura.cc b/ui/events/gesture_detection/gesture_config_helper_aura.cc
index e7845ac621e5a53121b34d157a5be1b06956f809..f9824dde5a0dd284b0642850ddb221ae9477f267 100644
--- a/ui/events/gesture_detection/gesture_config_helper_aura.cc
+++ b/ui/events/gesture_detection/gesture_config_helper_aura.cc
@@ -27,6 +27,10 @@ GestureDetector::Config DefaultGestureDetectorConfig() {
GestureConfiguration::min_scroll_velocity();
config.maximum_fling_velocity =
GestureConfiguration::fling_velocity_cap();
+ config.swipe_enabled = true;
+ config.minimum_swipe_velocity = GestureConfiguration::min_swipe_speed();
+ config.minimum_swipe_direction_ratio =
tdresser 2014/04/22 15:27:16 This name isn't great, nor was the previous one.
jdduke (slow) 2014/04/24 00:54:29 Yeah that's better, though I'll probably cache the
+ GestureConfiguration::max_swipe_deviation_ratio();
return config;
}
« no previous file with comments | « no previous file | ui/events/gesture_detection/gesture_detector.h » ('j') | ui/events/gesture_detection/gesture_detector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698