aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2015-02-10 12:22:17 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2015-02-10 12:22:17 +1000
commit25fa4dfef69c4e69beac90502529d2a3d8d509fd (patch)
tree5fcf7ebe8278fd015285634c3b74c323aa896eed
parent98345b701f41464941038e5d35d2d006bdf86ba5 (diff)
downloadglutin-25fa4dfef69c4e69beac90502529d2a3d8d509fd.tar.gz
glutin-25fa4dfef69c4e69beac90502529d2a3d8d509fd.zip
Make the mouse wheel events match natural direction on osx.
-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 => { },