From df00dd1cecd18589fc0ddba01139c3e248278806 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 7 Sep 2026 20:51:54 +0530 Subject: [PATCH] Fix #10448 --- glfw/wl_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/wl_init.c b/glfw/wl_init.c index d3bb66b6a..a06313f2b 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -251,7 +251,7 @@ pointer_handle_frame(void *data UNUSED, struct wl_pointer *pointer UNUSED) { ev.x_offset = scale * ev.unscaled.x; ev.y_offset = scale * ev.unscaled.y; glfw_handle_scroll_event_for_momentum(window, &ev, stopped, info.source_type == WL_POINTER_AXIS_SOURCE_FINGER); - window->wl.prev_frame_offset_type = ev.offset_type; + if (found) window->wl.prev_frame_offset_type = ev.offset_type; /* clear pointer_curr_axis_info for next frame */ memset(&info, 0, sizeof(info)); }