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

Unified Diff: remoting/host/event_executor_mac.cc

Issue 11140047: Supply X & Y deltas in the right order when creating new-style wheel events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_mac.cc
diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc
index f2dcec33c9a316b60a32bd0916f55f368d3cc8c4..fffc598c38870b59321738b31e7bcaedf91ff921 100644
--- a/remoting/host/event_executor_mac.cc
+++ b/remoting/host/event_executor_mac.cc
@@ -205,7 +205,7 @@ void EventExecutorMac::InjectMouseEvent(const MouseEvent& event) {
int delta_y = static_cast<int>(event.wheel_delta_y());
base::mac::ScopedCFTypeRef<CGEventRef> event(
CGEventCreateScrollWheelEvent(
- NULL, kCGScrollEventUnitPixel, 2, delta_x, delta_y));
+ NULL, kCGScrollEventUnitPixel, 2, delta_y, delta_x));
if (event)
CGEventPost(kCGHIDEventTap, event);
} else if (event.has_wheel_offset_x() && event.has_wheel_offset_y()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698