Skip to content

Commit 4fcfae0

Browse files
authored
Merge branch 'feschber:main' into clipboard-sharing
2 parents 7dfa911 + 39b79d8 commit 4fcfae0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

input-emulation/src/wlroots.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use wayland_client::backend::WaylandError;
1212
use wayland_client::WEnum;
1313

1414
use wayland_client::protocol::wl_keyboard::{self, WlKeyboard};
15-
use wayland_client::protocol::wl_pointer::{Axis, ButtonState};
15+
use wayland_client::protocol::wl_pointer::{Axis, AxisSource, ButtonState};
1616
use wayland_client::protocol::wl_seat::WlSeat;
1717
use wayland_protocols_wlr::virtual_pointer::v1::client::{
1818
zwlr_virtual_pointer_manager_v1::ZwlrVirtualPointerManagerV1 as VpManager,
@@ -211,7 +211,8 @@ impl VirtualInput {
211211
PointerEvent::AxisDiscrete120 { axis, value } => {
212212
let axis: Axis = (axis as u32).try_into()?;
213213
self.pointer
214-
.axis_discrete(now, axis, value as f64 / 6., value / 120);
214+
.axis_discrete(now, axis, value as f64 / 8., value);
215+
self.pointer.axis_source(AxisSource::Wheel);
215216
self.pointer.frame();
216217
}
217218
}

0 commit comments

Comments
 (0)