mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
wlr_virtual_pointer_v1: fix discrete scrolling
It seems it was forgotten to adjust when implementing !3461 High-resolution scroll wheel support
This commit is contained in:
parent
8026953df7
commit
0cff058f38
1 changed files with 2 additions and 1 deletions
|
@ -180,7 +180,8 @@ static void virtual_pointer_axis_discrete(struct wl_client *client,
|
||||||
pointer->axis_event[pointer->axis].time_msec = time;
|
pointer->axis_event[pointer->axis].time_msec = time;
|
||||||
pointer->axis_event[pointer->axis].orientation = axis;
|
pointer->axis_event[pointer->axis].orientation = axis;
|
||||||
pointer->axis_event[pointer->axis].delta = wl_fixed_to_double(value);
|
pointer->axis_event[pointer->axis].delta = wl_fixed_to_double(value);
|
||||||
pointer->axis_event[pointer->axis].delta_discrete = discrete;
|
pointer->axis_event[pointer->axis].delta_discrete = discrete *
|
||||||
|
WLR_POINTER_AXIS_DISCRETE_STEP;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void virtual_pointer_destroy_resource(struct wl_resource *resource) {
|
static void virtual_pointer_destroy_resource(struct wl_resource *resource) {
|
||||||
|
|
Loading…
Reference in a new issue