mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-08 18:51:28 +03:00
layer-shell: use value120 scroll events #115
This commit is contained in:
@@ -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();
|
let (_, client) = app.focused.as_ref().unwrap();
|
||||||
app.pending_events.push_back((
|
app.pending_events.push_back((
|
||||||
*client,
|
*client,
|
||||||
Event::Pointer(PointerEvent::Axis {
|
Event::Pointer(PointerEvent::Axis {
|
||||||
time,
|
time: 0,
|
||||||
axis: u32::from(axis) as u8,
|
axis: u32::from(axis) as u8,
|
||||||
value,
|
value: value120 as f64,
|
||||||
}),
|
}),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user