mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 20:59:37 +08:00
Merge pull request #5932 from fufesou/fix/mobile_cursor_offset
fix, mobile curosr (hotx,hoty)
This commit is contained in:
commit
3907cc679a
@ -740,8 +740,8 @@ class CursorPaint extends StatelessWidget {
|
||||
return CustomPaint(
|
||||
painter: ImagePainter(
|
||||
image: m.image ?? preDefaultCursor.image,
|
||||
x: m.x * s - hotx * s + c.x,
|
||||
y: m.y * s - hoty * s + c.y - adjust,
|
||||
x: m.x * s - hotx + c.x,
|
||||
y: m.y * s - hoty + c.y - adjust,
|
||||
scale: 1),
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user