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

Unified Diff: ui/events/x/events_x.cc

Issue 187333004: Fix direction of horizontal scroll when tilting the scroll wheel on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/events_x.cc
diff --git a/ui/events/x/events_x.cc b/ui/events/x/events_x.cc
index 17b2d3b204ca701830d54e7e823fbc8b356ce9f1..9fec9df2bf9bcf18d5f9947a3d96e0c4229a8662 100644
--- a/ui/events/x/events_x.cc
+++ b/ui/events/x/events_x.cc
@@ -526,9 +526,9 @@ gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
case 5:
return gfx::Vector2d(0, -kWheelScrollAmount);
case 6:
- return gfx::Vector2d(-kWheelScrollAmount, 0);
- case 7:
return gfx::Vector2d(kWheelScrollAmount, 0);
+ case 7:
+ return gfx::Vector2d(-kWheelScrollAmount, 0);
default:
return gfx::Vector2d();
}
« no previous file with comments | « no previous file | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698