Cancel momentum scroll on button and key events

This commit is contained in:
Kovid Goyal
2026-01-09 13:15:37 +05:30
parent 3232551c39
commit 779fb0d5c5
2 changed files with 3 additions and 0 deletions

1
glfw/internal.h vendored
View File

@@ -886,6 +886,7 @@ int _glfwPlatformSetWindowBlur(_GLFWwindow* handle, int value);
MonitorGeometry _glfwPlatformGetMonitorGeometry(_GLFWmonitor* monitor);
bool _glfwPlatformGrabKeyboard(bool grab);
void glfw_handle_scroll_event_for_momentum(_GLFWwindow *w, const GLFWScrollEvent *ev, bool stopped, bool is_finger_based);
#define glfw_cancel_momentum_scroll() glfw_handle_scroll_event_for_momentum(NULL, NULL, false, false)
char* _glfw_strdup(const char* source);