From 3f77a2044e14aa9cacbad9042d8b368c0f29b309 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Fri, 9 Nov 2018 13:22:03 +0100 Subject: [PATCH] Make high resolution scrolling more responsive and configurable --- kitty/mouse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/mouse.c b/kitty/mouse.c index b5b67d2a7..6bda055c7 100644 --- a/kitty/mouse.c +++ b/kitty/mouse.c @@ -549,6 +549,7 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) { int s; bool is_high_resolution = flags & 1; if (is_high_resolution) { + yoffset *= global_state.callback_os_window->viewport_y_ratio * OPT(wheel_scroll_multiplier); if (yoffset * global_state.callback_os_window->pending_scroll_pixels < 0) { global_state.callback_os_window->pending_scroll_pixels = 0; // change of direction }