From 4e5a66340a224910e56bf49bc11d2ad804dc6773 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Mon, 27 Oct 2025 15:56:30 +0100 Subject: [PATCH] Partially Revert "slow scrolling chrome with emulation=wlroots capture=layer-shell (#318) (#325)" (#334) The division by 120 was correct. --- input-emulation/src/wlroots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input-emulation/src/wlroots.rs b/input-emulation/src/wlroots.rs index 51d6621..944ebff 100644 --- a/input-emulation/src/wlroots.rs +++ b/input-emulation/src/wlroots.rs @@ -210,7 +210,7 @@ impl VirtualInput { PointerEvent::AxisDiscrete120 { axis, value } => { let axis: Axis = (axis as u32).try_into()?; self.pointer - .axis_discrete(now, axis, value as f64 / 8., value); + .axis_discrete(now, axis, value as f64 / 8., value / 120); self.pointer.axis_source(AxisSource::Wheel); self.pointer.frame(); }