aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConsolatis <40171-Consolatis@users.noreply.gitlab.freedesktop.org>2022-09-08 05:22:03 +0200
committerConsolatis <40171-Consolatis@users.noreply.gitlab.freedesktop.org>2022-09-08 05:33:28 +0200
commit0cff058f38f2121475ca4d298e7f8c3b7938df30 (patch)
treeea2bae45eab7de863b742dfc0627594c506eea37
parent8026953df74becb38d37365d0446bec848299bf3 (diff)
wlr_virtual_pointer_v1: fix discrete scrolling
It seems it was forgotten to adjust when implementing !3461 High-resolution scroll wheel support
-rw-r--r--types/wlr_virtual_pointer_v1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/types/wlr_virtual_pointer_v1.c b/types/wlr_virtual_pointer_v1.c
index f4dd60c1..b452ff56 100644
--- a/types/wlr_virtual_pointer_v1.c
+++ b/types/wlr_virtual_pointer_v1.c
@@ -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].orientation = axis;
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) {