Merge pull request #5932 from fufesou/fix/mobile_cursor_offset

fix, mobile curosr (hotx,hoty)
This commit is contained in:
RustDesk 2023-10-06 23:49:05 +08:00 committed by GitHub
commit 3907cc679a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),
);
}