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

Unified Diff: ui/events/blink/input_handler_proxy.cc

Issue 1720023002: Wheel scrolling with smooth scrolling enabled would cause an extra animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: ui/events/blink/input_handler_proxy.cc
diff --git a/ui/events/blink/input_handler_proxy.cc b/ui/events/blink/input_handler_proxy.cc
index 2a191b83601ca69228ac505a0d4600f71897bdea..8c41ad50f37b3681329240628da5aeb8ecc16b74 100644
--- a/ui/events/blink/input_handler_proxy.cc
+++ b/ui/events/blink/input_handler_proxy.cc
@@ -597,10 +597,8 @@ InputHandlerProxy::EventDisposition InputHandlerProxy::HandleGestureScrollBegin(
} else if (smooth_scroll_enabled_ &&
gesture_event.data.scrollBegin.deltaHintUnits ==
blink::WebGestureEvent::ScrollUnits::Pixels) {
- gfx::Vector2dF scroll_delta(-gesture_event.data.scrollBegin.deltaXHint,
- -gesture_event.data.scrollBegin.deltaYHint);
scroll_status = input_handler_->ScrollAnimated(
- gfx::Point(gesture_event.x, gesture_event.y), scroll_delta);
+ gfx::Point(gesture_event.x, gesture_event.y), gfx::Vector2dF());
tdresser 2016/02/22 20:14:49 Does this need to be a ScrollAnimated? Can we just
dtapuska 2016/02/22 20:15:59 I first attempted to do that and since a scroll an
ymalik 2016/02/22 20:35:32 Why do we need this branch to begin with if we're
dtapuska 2016/02/22 20:39:03 ScrollAnimated is successful; but the next ScrollA
} else {
scroll_status =
input_handler_->ScrollBegin(&scroll_state, cc::InputHandler::GESTURE);
« 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