Remove unneeded axis event timestamp

This commit is contained in:
Kovid Goyal
2026-01-05 20:13:33 +05:30
parent e825005861
commit 32f7f8d321
3 changed files with 11 additions and 12 deletions

3
glfw/wl_init.c vendored
View File

@@ -225,8 +225,7 @@ pointer_handle_frame(void *data UNUSED, struct wl_pointer *pointer UNUSED) {
ev.x_offset *= scale; ev.y_offset *= scale;
ev.x_offset *= -1;
glfw_handle_scroll_event_for_momentum(
window, &ev, MAX(info.y_start_time, info.x_start_time), info.y_stop_received || info.x_stop_received,
info.source_type == WL_POINTER_AXIS_SOURCE_FINGER);
window, &ev, info.y_stop_received || info.x_stop_received, info.source_type == WL_POINTER_AXIS_SOURCE_FINGER);
/* clear pointer_curr_axis_info for next frame */
memset(&info, 0, sizeof(info));
}