Initial implementation of momentum for finger based scrolling on Wayland

Needs configuration and possibly the parameter adjustment once pixel
scrolling is merged.
This commit is contained in:
Kovid Goyal
2026-01-05 19:52:44 +05:30
parent cd25248e08
commit e1199bcee2
6 changed files with 326 additions and 7 deletions

1
glfw/internal.h vendored
View File

@@ -885,6 +885,7 @@ void _glfwPlatformRemoveTimer(unsigned long long timer_id);
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, monotonic_t timestamp, bool stopped, bool is_finger_based);
char* _glfw_strdup(const char* source);