diff options
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 22cf23dfa6..181723a0e0 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -470,18 +470,18 @@ static void pointer_handle_axis(void *data, // scale it down to 1.00 for multipliying it with the commands if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL) { if (value > 0) - mp_input_put_axis(wl->vo->input_ctx, MP_AXIS_DOWN, + mp_input_put_wheel(wl->vo->input_ctx, MP_WHEEL_DOWN, wl_fixed_to_double(value)*0.1); if (value < 0) - mp_input_put_axis(wl->vo->input_ctx, MP_AXIS_UP, + mp_input_put_wheel(wl->vo->input_ctx, MP_WHEEL_UP, wl_fixed_to_double(value)*-0.1); } else if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL) { if (value > 0) - mp_input_put_axis(wl->vo->input_ctx, MP_AXIS_RIGHT, + mp_input_put_wheel(wl->vo->input_ctx, MP_WHEEL_RIGHT, wl_fixed_to_double(value)*0.1); if (value < 0) - mp_input_put_axis(wl->vo->input_ctx, MP_AXIS_LEFT, + mp_input_put_wheel(wl->vo->input_ctx, MP_WHEEL_LEFT, wl_fixed_to_double(value)*-0.1); } } |