aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-11-24 19:50:34 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-11 20:23:41 -0800
commitadf02b5049f644e56033834e948481f199e6bb6a (patch)
treed8d5024e695ce6348b005118e58fc11686ae81e4 /src/event.rs
parent90e0a759e8e55952ada459914f9958d50eab04fe (diff)
downloadalacritty-adf02b5049f644e56033834e948481f199e6bb6a.tar.gz
alacritty-adf02b5049f644e56033834e948481f199e6bb6a.zip
Support trackpad scrolling
Linebased scrolling is still unsupported (need a mouse to test with).
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
+ );
+ },
_ => (),
}
}