From 895bd53e8c57c0fa33de8a1e6bae6219893145c2 Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Wed, 3 May 2023 22:11:56 -0700 Subject: [PATCH] Added a reset for axis values after a discete scroll --- src/input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input.c b/src/input.c index 9e5f93b..c5a2f32 100644 --- a/src/input.c +++ b/src/input.c @@ -175,6 +175,8 @@ void pointer_process_scroll(struct Pointer *pointer, unsigned int axis_index) { if (axis->discrete_steps) { for (int i = 0; i < axis->discrete_steps; i++) hotspots_process(pointer->focused_monitor, pointer->x, pointer->y, wl_axis_to_button(axis_index, axis->value)); + axis->value = 0; + axis->discrete_steps = 0; } else { while (abs(axis->value) > SCROLL_THRESHOLD) { if (axis->value > 0){