Files
rustdesk/flutter
alonginwind d40e1da715 fix(mobile): align the virtual mouse handle with the peer cursor (#17108)
* 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>
2026-11-18 16:46:05 +08:00
..
…
2026-10-30 16:30:09 +08:00
2026-11-09 00:09:16 +08:00
…
…

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.