From 25fa4dfef69c4e69beac90502529d2a3d8d509fd Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Tue, 10 Feb 2015 12:22:17 +1000 Subject: Make the mouse wheel events match natural direction on osx. --- src/cocoa/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 => { }, -- cgit v1.2.3