From 0b087cb9a9bdac246f3b5f3baa6ebe93cb488b23 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:58:18 +0900 Subject: [PATCH] fix: only move mouse on depress, not release --- src/overlays/screen.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/overlays/screen.rs b/src/overlays/screen.rs index a549290..14ff928 100644 --- a/src/overlays/screen.rs +++ b/src/overlays/screen.rs @@ -120,6 +120,9 @@ impl InteractionHandler for ScreenInteractionHandler { app.hid_provider.send_button(btn, pressed); + if !pressed { + return; + } let pos = self.mouse_transform.transform_point2(hit.uv); app.hid_provider.mouse_move(pos); }