wlserver: fix pointer scroll in nested mode

This commit is contained in:
llyyr 2022-12-01 00:13:22 +05:30 committed by Simon Ser
parent 5a9bf10c81
commit 212638e9d0

View file

@ -1012,11 +1012,11 @@ void wlserver_mousewheel( int x, int y, uint32_t time )
{ {
if ( x != 0 ) if ( x != 0 )
{ {
wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_HORIZONTAL, x, x, WLR_AXIS_SOURCE_WHEEL ); wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_HORIZONTAL, x, x * WLR_POINTER_AXIS_DISCRETE_STEP, WLR_AXIS_SOURCE_WHEEL );
} }
if ( y != 0 ) if ( y != 0 )
{ {
wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_VERTICAL, y, y, WLR_AXIS_SOURCE_WHEEL ); wlr_seat_pointer_notify_axis( wlserver.wlr.seat, time, WLR_AXIS_ORIENTATION_VERTICAL, y, y * WLR_POINTER_AXIS_DISCRETE_STEP, WLR_AXIS_SOURCE_WHEEL );
} }
wlr_seat_pointer_notify_frame( wlserver.wlr.seat ); wlr_seat_pointer_notify_frame( wlserver.wlr.seat );
} }