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

Unified Diff: content/browser/renderer_host/input/synthetic_smooth_move_gesture.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/synthetic_smooth_move_gesture.cc
diff --git a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc
index 26ad746f86b71b5d95f761f6ebe5e5cf2f5240dc..825a96bc8acff5006ebdb91563d48bffed29bcff 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc
+++ b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc
@@ -245,8 +245,9 @@ void SyntheticSmoothMoveGesture::ForwardMouseWheelEvent(
SyntheticWebMouseWheelEventBuilder::Build(0, 0, delta.x(), delta.y(), 0,
false);
- mouse_wheel_event.x = current_move_segment_start_position_.x();
- mouse_wheel_event.y = current_move_segment_start_position_.y();
+ mouse_wheel_event.setPositionInWidget(
+ current_move_segment_start_position_.x(),
+ current_move_segment_start_position_.y());
mouse_wheel_event.setTimeStampSeconds(ConvertTimestampToSeconds(timestamp));

Powered by Google App Engine
This is Rietveld 408576698