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

Unified Diff: ui/base/events/event.cc

Issue 11743013: Scaling scroll/fling events in multi-monitor setup (Closed) Base URL: https://chromium.googlesource.com/chromium/src@git-svn
Patch Set: Addressing Ben's comment Created 7 years, 11 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 | « ui/base/events/event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.cc
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index e24c1761aba0f6a5c15b85d1114d5f961d1abecd..fa2e422d3b0237669f00d60d3a3db14ef7f9bcbf 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -615,6 +615,11 @@ ScrollEvent::ScrollEvent(EventType type,
CHECK(IsScrollEvent());
}
+void ScrollEvent::Scale(const float factor) {
+ x_offset_ *= factor;
+ y_offset_ *= factor;
+}
+
////////////////////////////////////////////////////////////////////////////////
// GestureEvent
« no previous file with comments | « ui/base/events/event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698