fix discrete scrolling on wlroots

This commit is contained in:
Ferdinand Schober
2024-05-12 15:49:39 +02:00
parent 1737727d61
commit 5802a0be0b

View File

@@ -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(),