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

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

Issue 1833013002: Fix scrolling rails on Mac OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/mouse_wheel_event_queue.cc
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
index 5e56e9b821ec1e90d46749752c8dac920b5efe7f..2004c1677f4905e2ba8047a9ffbc05d7cbefb934 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
@@ -122,6 +122,13 @@ void MouseWheelEventQueue::ProcessMouseWheelAck(
event_sent_for_gesture_ack_->event.hasPreciseScrollingDeltas
? blink::WebGestureEvent::PrecisePixels
: blink::WebGestureEvent::Pixels;
+
+ if (event_sent_for_gesture_ack_->event.railsMode ==
+ WebInputEvent::RailsModeVertical)
+ scroll_update.event.data.scrollUpdate.deltaX = 0;
+ if (event_sent_for_gesture_ack_->event.railsMode ==
+ WebInputEvent::RailsModeHorizontal)
+ scroll_update.event.data.scrollUpdate.deltaY = 0;
}
bool current_phase_ended = false;
« no previous file with comments | « no previous file | content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698