aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs
index b220ae2c..2656db72 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -96,7 +96,19 @@ impl<N: input::Notify> Processor<N> {
glutin::Event::Focused(true) => {
let mut terminal = self.terminal.lock();
terminal.dirty = true;
- }
+ },
+ glutin::Event::MouseWheel(scroll_delta, touch_phase) => {
+ let terminal = self.terminal.lock();
+ let processor = &mut self.input_processor;
+ let notifier = &mut self.notifier;
+
+ processor.on_mouse_wheel(
+ notifier,
+ scroll_delta,
+ touch_phase,
+ &terminal
+ );
+ },
_ => (),
}
}