From 2b4d0a4ac96815b91afdf33ca50784fd4893b9db Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Feb 2017 16:03:20 +0530 Subject: [PATCH] Fix regression that caused scrolling to return to origin when releasing keys --- kitty/boss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index e8f6ed202..f82a7d34e 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -281,7 +281,7 @@ class Boss(Thread): passthrough = f() if not passthrough: return - if window.char_grid.scrolled_by and key not in MODIFIER_KEYS: + if window.char_grid.scrolled_by and key not in MODIFIER_KEYS and action == GLFW_PRESS: window.scroll_end() data = interpret_key_event(key, scancode, mods, window, action) if data: