aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx')
-rw-r--r--src/osx/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index 22ae432..42a9ea2 100644
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -23,7 +23,7 @@ use std::mem;
use std::ptr;
use std::sync::atomic::{AtomicBool, Relaxed};
-use events::Event::{MouseInput, MouseMoved, ReceivedCharacter, KeyboardInput};
+use events::Event::{MouseInput, MouseMoved, ReceivedCharacter, KeyboardInput, MouseWheel};
use events::ElementState::{Pressed, Released};
use events::MouseButton::{LeftMouseButton, RightMouseButton};
use events;
@@ -368,7 +368,7 @@ impl Window {
events.push(alt_modifier.unwrap());
}
},
- NSScrollWheel => { },
+ NSScrollWheel => { events.push(MouseWheel(-event.scrollingDeltaY() as i32)); },
NSOtherMouseDown => { },
NSOtherMouseUp => { },
NSOtherMouseDragged => { },