Skip to content

Commit

Permalink
layer-shell: use value120 scroll events #115
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed May 3, 2024
1 parent 18a3c10 commit e21ab02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/capture/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
));
}
Expand Down

0 comments on commit e21ab02

Please sign in to comment.