plugin/wheel: don't cancel the timer before re-setting it

Not needed and it saves us a bit of busywork.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1260>
This commit is contained in:
Peter Hutterer 2025-07-03 10:25:00 +10:00 committed by Marge Bot
parent 892e5d35c7
commit 9b7f933797

View file

@ -178,7 +178,6 @@ wheel_handle_event_on_state_scrolling(struct plugin_device *pd,
{ {
switch (event) { switch (event) {
case WHEEL_EVENT_SCROLL: case WHEEL_EVENT_SCROLL:
wheel_cancel_scroll_timer(pd);
wheel_set_scroll_timer(pd, time); wheel_set_scroll_timer(pd, time);
break; break;
case WHEEL_EVENT_SCROLL_TIMEOUT: case WHEEL_EVENT_SCROLL_TIMEOUT: