diff options
Diffstat (limited to 'kvmd/apps/vnc/rfb.py')
-rw-r--r-- | kvmd/apps/vnc/rfb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/vnc/rfb.py b/kvmd/apps/vnc/rfb.py index 450024c4..08c68a4c 100644 --- a/kvmd/apps/vnc/rfb.py +++ b/kvmd/apps/vnc/rfb.py @@ -352,12 +352,12 @@ class RfbClient: # pylint: disable=too-many-instance-attributes "middle": bool(buttons & 0x2), }, wheel={ - "x": (32 if buttons & 0x40 else (-32 if buttons & 0x20 else 0)), - "y": (32 if buttons & 0x10 else (-32 if buttons & 0x8 else 0)), + "x": (-4 if buttons & 0x40 else (4 if buttons & 0x20 else 0)), + "y": (-4 if buttons & 0x10 else (4 if buttons & 0x8 else 0)), }, move={ "x": round(to_x / self._width * 65535 + -32768), - "y": round(to_y / self._width * 65535 + -32768), + "y": round(to_y / self._height * 65535 + -32768), }, ) |