From 9b7f933797f43afdaf5b48c20b7874613413c366 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Jul 2025 10:25:00 +1000 Subject: [PATCH] plugin/wheel: don't cancel the timer before re-setting it Not needed and it saves us a bit of busywork. Part-of: --- src/libinput-plugin-mouse-wheel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libinput-plugin-mouse-wheel.c b/src/libinput-plugin-mouse-wheel.c index 1e42af89..bf56fb33 100644 --- a/src/libinput-plugin-mouse-wheel.c +++ b/src/libinput-plugin-mouse-wheel.c @@ -178,7 +178,6 @@ wheel_handle_event_on_state_scrolling(struct plugin_device *pd, { switch (event) { case WHEEL_EVENT_SCROLL: - wheel_cancel_scroll_timer(pd); wheel_set_scroll_timer(pd, time); break; case WHEEL_EVENT_SCROLL_TIMEOUT: