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

Unified Diff: content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc

Issue 2742473002: gpu benchmarking swipe for touchpad
Patch Set: Update direction in tests that use swipeElement/Page to maintain the same behavior. Created 3 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: content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
diff --git a/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc b/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
index de5265912cab1a561d543358f1d6f63aaf9728a3..a3d426e8e96ab6ddbd27fb91875055a79dbaded8 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
+++ b/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
@@ -44,6 +44,7 @@ bool SyntheticSmoothScrollGesture::InitializeMoveGesture(
SyntheticSmoothMoveGestureParams move_params;
move_params.start_point = params_.anchor;
move_params.distances = params_.distances;
+ move_params.velocity = params_.velocity;
move_params.speed_in_pixels_s = params_.speed_in_pixels_s;
move_params.prevent_fling = params_.prevent_fling;
move_params.input_type = GetInputSourceType(gesture_type);

Powered by Google App Engine
This is Rietveld 408576698