From 0980c4e783a6de58334f8abcf4f188af1d5573ca Mon Sep 17 00:00:00 2001 From: AA-8 <108150092+AA-8@users.noreply.github.com> Date: Wed, 1 Mar 2023 09:20:09 -0500 Subject: [PATCH] Fixed scroll issue. Scrolling was applying the y coordinate of the cursor instead of the y movement of the scroll wheel. --- atbswp/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atbswp/control.py b/atbswp/control.py index 6643990..8c05c3f 100644 --- a/atbswp/control.py +++ b/atbswp/control.py @@ -259,7 +259,7 @@ def on_scroll(self, x, y, dx, dy): """Triggered by a mouse wheel scroll.""" if not self.recording: return False - self.write_mouse_action(move="scroll", parameters=f"{y}") + self.write_mouse_action(move="scroll", parameters=f"{dy}") def on_press(self, key): """Triggered by a key press."""