aboutsummaryrefslogtreecommitdiffstats
path: root/src/cocoa/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-02-10 08:20:05 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-02-10 08:20:05 +0100
commit9884908240af9c76a1009336b05ba500a620f3bb (patch)
tree5fcf7ebe8278fd015285634c3b74c323aa896eed /src/cocoa/mod.rs
parent98345b701f41464941038e5d35d2d006bdf86ba5 (diff)
parent25fa4dfef69c4e69beac90502529d2a3d8d509fd (diff)
downloadglutin-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.rs2
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 => { },