Skip to content

Commit

Permalink
fix: only move mouse on depress, not release
Browse files Browse the repository at this point in the history
  • Loading branch information
galister committed Apr 12, 2024
1 parent 5989d32 commit 0b087cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/overlays/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0b087cb

Please sign in to comment.