From 76a29273c8bbcda126e16a29daec513899a20605 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Feb 2026 11:23:49 +0530 Subject: [PATCH] Dont send non-finger based zero size scroll events on Wayland --- glfw/momentum-scroll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/momentum-scroll.c b/glfw/momentum-scroll.c index b0a558e6f..ae93c0973 100644 --- a/glfw/momentum-scroll.c +++ b/glfw/momentum-scroll.c @@ -183,7 +183,7 @@ glfw_handle_scroll_event_for_momentum( const bool is_synthetic_momentum_start_event = stopped && momentum_scroll_gesture_detection_timeout_ms; if (!w) { cancel_existing_scroll(true); return; } if (!is_finger_based || ev->offset_type != GLFW_SCROLL_OFFEST_HIGHRES || s.friction < 0 || s.friction >= 1) { - _glfwInputScroll(w, ev); + if (ev->x_offset != 0 || ev->y_offset != 0) _glfwInputScroll(w, ev); return; } monotonic_t now = monotonic();