mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-24 14:47:46 +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>