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)); }