Browse Source

Migliora la logica di scrolling degli assi nella classe KeyBindings

master
Matteo Benedetto 1 year ago
parent
commit
3eecc98304
  1. 2
      engine/controls.py

2
engine/controls.py

@ -62,4 +62,4 @@ class KeyBindings:
self.scrolling += 1 self.scrolling += 1
def axis_scroll(self, x, y): 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)
Loading…
Cancel
Save