diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-02-10 08:20:05 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-02-10 08:20:05 +0100 |
commit | 9884908240af9c76a1009336b05ba500a620f3bb (patch) | |
tree | 5fcf7ebe8278fd015285634c3b74c323aa896eed /src/cocoa/mod.rs | |
parent | 98345b701f41464941038e5d35d2d006bdf86ba5 (diff) | |
parent | 25fa4dfef69c4e69beac90502529d2a3d8d509fd (diff) | |
download | glutin-9884908240af9c76a1009336b05ba500a620f3bb.tar.gz glutin-9884908240af9c76a1009336b05ba500a620f3bb.zip |
Merge pull request #261 from glennw/fix-osx-mouse-wheel
Make the mouse wheel events match natural direction on osx.
Diffstat (limited to 'src/cocoa/mod.rs')
-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 => { }, |