Migliora la logica di scrolling degli assi nella classe KeyBindings

This commit is contained in:
2024-12-23 16:56:36 +01:00
parent f3fe91ca36
commit 3eecc98304
+1 -1
View File
@@ -62,4 +62,4 @@ class KeyBindings:
self.scrolling += 1
def axis_scroll(self, x, y):
self.scroll_cursor(bool(x)*1, bool(y)*1)
self.scroll_cursor(1 if x > 0 else -1, 1 if y > 0 else -1)