Fix regression that caused scrolling to return to origin when releasing keys

This commit is contained in:
Kovid Goyal 2017-02-10 16:03:20 +05:30
parent edab1aebaa
commit 2b4d0a4ac9

View File

@ -281,7 +281,7 @@ class Boss(Thread):
passthrough = f() passthrough = f()
if not passthrough: if not passthrough:
return 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() window.scroll_end()
data = interpret_key_event(key, scancode, mods, window, action) data = interpret_key_event(key, scancode, mods, window, action)
if data: if data: