mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-23 22:28:35 +00:00
* fix(mobile): align the virtual mouse handle with the peer cursor The handle origin was reported in window coordinates, while the mouse mapping reads it as canvas-local: on mobile CanvasModel.topToEdge and leftToEdge are 0, so nothing compensates for the safe area. The peer cursor was therefore drawn one inset away from the handle arrow, and a tap landed where that cursor was rather than under the arrow. Subtract the same padding InputModel._pointerPositionForRemoteCanvas applies, so both entry points hand over coordinates in one space. * test(mobile): pin the virtual mouse cursor to the canvas The handle origin has to reach the mouse mapping as a canvas coordinate, otherwise the peer cursor draws one safe-area inset away from the handle arrow. Reports the handle position through a nonzero inset, so a return to window coordinates moves the point by that inset and fails here. Signed-off-by: alonginwind <sunzl3721@gmail.com> --------- Signed-off-by: alonginwind <sunzl3721@gmail.com>
flutter_hbb
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples and guidance on mobile development, and a full API reference.