fix, mobile curosr (hotx,hoty)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-10-06 23:36:49 +08:00
parent 53cd259ffa
commit 8cc5aee528

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