From 5802a0be0b033e28fabab1bf88654e64847f3056 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Sun, 12 May 2024 15:49:39 +0200 Subject: [PATCH] fix discrete scrolling on wlroots --- src/emulate/wlroots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emulate/wlroots.rs b/src/emulate/wlroots.rs index 30e1724..4a9dd47 100644 --- a/src/emulate/wlroots.rs +++ b/src/emulate/wlroots.rs @@ -182,7 +182,7 @@ impl VirtualInput { } PointerEvent::AxisDiscrete120 { axis, value } => { let axis: Axis = (axis as u32).try_into()?; - self.pointer.axis(0, axis, (value / 15) as f64); + self.pointer.axis_discrete(0, axis, value as f64 / 6., value / 120); self.pointer.frame(); } PointerEvent::Frame {} => self.pointer.frame(),