layer-shell: use value120 scroll events #115

This commit is contained in:
Ferdinand Schober
2024-05-04 01:26:12 +02:00
parent 18a3c10f8e
commit e21ab02a6e

View File

@@ -750,14 +750,14 @@ impl Dispatch<WlPointer, ()> for State {
}),
));
}
wl_pointer::Event::Axis { time, axis, value } => {
wl_pointer::Event::AxisValue120 { axis, value120 } => {
let (_, client) = app.focused.as_ref().unwrap();
app.pending_events.push_back((
*client,
Event::Pointer(PointerEvent::Axis {
time,
time: 0,
axis: u32::from(axis) as u8,
value,
value: value120 as f64,
}),
));
}