Invert momentum_scroll
Its nicer to have momentum_scroll 0 mean no momentum scrolling
This commit is contained in:
parent
2ab0fcb373
commit
8fd0909e4a
2 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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() # }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue