Index: ui/base/events/event.h |
diff --git a/ui/base/events/event.h b/ui/base/events/event.h |
index 99b2eecc5a99e2d9f72dae63fae98b586988e079..49cb2b6bb4ee60c50e7a218ba42834cf3ada9d9c 100644 |
--- a/ui/base/events/event.h |
+++ b/ui/base/events/event.h |
@@ -632,6 +632,11 @@ class UI_EXPORT ScrollEvent : public MouseEvent { |
float x_offset, |
float y_offset); |
+ // Scale the scroll event's offset value. |
+ // This is useful in the multi-monitor setup where it needs to be scaled |
+ // to provide a consistent user experience. |
+ void Scale(const float factor); |
+ |
float x_offset() const { return x_offset_; } |
float y_offset() const { return y_offset_; } |
int finger_count() const { return finger_count_; } |