File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use wayland_client::backend::WaylandError;
1212use wayland_client:: WEnum ;
1313
1414use 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 } ;
1616use wayland_client:: protocol:: wl_seat:: WlSeat ;
1717use 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 }
You can’t perform that action at this time.
0 commit comments