aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/x11/mod.rs')
-rw-r--r--src/api/x11/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs
index 3dd90d3..252b22e 100644
--- a/src/api/x11/mod.rs
+++ b/src/api/x11/mod.rs
@@ -240,11 +240,11 @@ impl<'a> Iterator for PollEventsIterator<'a> {
ffi::Button2 => Some(Middle),
ffi::Button3 => Some(Right),
ffi::Button4 => {
- self.window.pending_events.lock().unwrap().push_back(MouseWheel(1));
+ self.window.pending_events.lock().unwrap().push_back(MouseWheel(0.0, 1.0));
None
}
ffi::Button5 => {
- self.window.pending_events.lock().unwrap().push_back(MouseWheel(-1));
+ self.window.pending_events.lock().unwrap().push_back(MouseWheel(0.0, -1.0));
None
}
_ => None