diff --git a/kitty/glfw.c b/kitty/glfw.c index ea197e051..62a365b3e 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -1354,7 +1354,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) { static bool is_first_window = true; if (is_first_window) { - if (global_state.is_wayland) glfwConfigureMomentumScroller(OPT(momentum_scroll), -1, -1, 0); + if (global_state.is_wayland) glfwConfigureMomentumScroller(1. - OPT(momentum_scroll), -1, -1, 0); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, OPENGL_REQUIRED_VERSION_MAJOR); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, OPENGL_REQUIRED_VERSION_MINOR); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true); diff --git a/kitty/options/definition.py b/kitty/options/definition.py index f7de55781..99540e85e 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -597,13 +597,13 @@ themselves. ''') -opt('momentum_scroll', '0.04', option_type='unit_float', ctype='float', long_text=''' +opt('momentum_scroll', '0.96', option_type='unit_float', ctype='float', long_text=''' The amount of friction to apply to slow down momentum (inertial) scrolling. A number -from 0 to 1, with 1 meaning no momentum scrolling. Note that this setting only -applies on platforms such as Wayland, that do not provide native momentum scrolling. -On macOS, the native OS based momentum scrolling is used. Also, momentum scrolling -only applies to "finger" based devices such as touchpads and touchscreens. Changes -to this setting only take effect after a kitty restart. +from 0 to 1, with 0 meaning no momentum scrolling and 1 meaning infinite scrolling. +Note that this setting only applies on platforms such as Wayland, that do not provide +native momentum scrolling. On macOS, the native OS based momentum scrolling is used. +Also, momentum scrolling only applies to "finger" based devices such as touchpads +and touchscreens. Changes to this setting only take effect after a kitty restart. ''') egr() # }}}