diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2015-02-10 12:22:17 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-02-10 12:22:17 +1000 |
commit | 25fa4dfef69c4e69beac90502529d2a3d8d509fd (patch) | |
tree | 5fcf7ebe8278fd015285634c3b74c323aa896eed /src/cocoa | |
parent | 98345b701f41464941038e5d35d2d006bdf86ba5 (diff) | |
download | glutin-25fa4dfef69c4e69beac90502529d2a3d8d509fd.tar.gz glutin-25fa4dfef69c4e69beac90502529d2a3d8d509fd.zip |
Make the mouse wheel events match natural direction on osx.
Diffstat (limited to 'src/cocoa')
-rw-r--r-- | src/cocoa/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index 1086a1b..44a92cd 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -490,7 +490,7 @@ impl Window { events.push_back(alt_modifier.unwrap()); } }, - NSScrollWheel => { events.push_back(MouseWheel(-event.scrollingDeltaY() as i32)); }, + NSScrollWheel => { events.push_back(MouseWheel(event.scrollingDeltaY() as i32)); }, NSOtherMouseDown => { }, NSOtherMouseUp => { }, NSOtherMouseDragged => { }, |