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

Unified Diff: ui/events/gesture_event_details.cc

Issue 2605193002: Fix mouse wheel over-scrolls when display is scaled and scroll is paginated (Closed)
Patch Set: More unittests. Created 3 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
« ui/events/gesture_event_details.h ('K') | « ui/events/gesture_event_details.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_event_details.cc
diff --git a/ui/events/gesture_event_details.cc b/ui/events/gesture_event_details.cc
index 8fceecb7a649bbcb2abac71c01792ffba7bec5ec..3203fd4ec77128721a26054be3febfcdfb50e572 100644
--- a/ui/events/gesture_event_details.cc
+++ b/ui/events/gesture_event_details.cc
@@ -21,7 +21,8 @@ GestureEventDetails::GestureEventDetails(ui::EventType type)
GestureEventDetails::GestureEventDetails(ui::EventType type,
float delta_x,
- float delta_y)
+ float delta_y,
+ ScrollUnits units)
: type_(type),
device_type_(GestureDeviceType::DEVICE_UNKNOWN),
touch_points_(1) {
@@ -31,11 +32,13 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
case ui::ET_GESTURE_SCROLL_BEGIN:
data_.scroll_begin.x_hint = delta_x;
data_.scroll_begin.y_hint = delta_y;
+ data_.scroll_begin.delta_hint_units = units;
break;
case ui::ET_GESTURE_SCROLL_UPDATE:
data_.scroll_update.x = delta_x;
data_.scroll_update.y = delta_y;
+ data_.scroll_update.delta_units = units;
break;
case ui::ET_SCROLL_FLING_START:
« ui/events/gesture_event_details.h ('K') | « ui/events/gesture_event_details.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698