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

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

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm 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/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 65f3b62ec049ae41d0f830e18e35389fe61314fd..607d69e03f03763a234990bb59bc954229c23363 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
@@ -91,10 +91,12 @@ void MouseWheelEventQueue::ProcessMouseWheelAck(
WebInputEvent::GestureScrollUpdate, WebInputEvent::NoModifiers,
event_sent_for_gesture_ack_->event.timeStampSeconds());
- scroll_update.x = event_sent_for_gesture_ack_->event.x;
- scroll_update.y = event_sent_for_gesture_ack_->event.y;
- scroll_update.globalX = event_sent_for_gesture_ack_->event.globalX;
- scroll_update.globalY = event_sent_for_gesture_ack_->event.globalY;
+ scroll_update.x = event_sent_for_gesture_ack_->event.positionInWidget().x;
+ scroll_update.y = event_sent_for_gesture_ack_->event.positionInWidget().y;
+ scroll_update.globalX =
+ event_sent_for_gesture_ack_->event.positionInScreen().x;
+ scroll_update.globalY =
+ event_sent_for_gesture_ack_->event.positionInScreen().y;
scroll_update.sourceDevice = blink::WebGestureDeviceTouchpad;
scroll_update.resendingPluginId = -1;

Powered by Google App Engine
This is Rietveld 408576698