fix(flutter): initialize the cursor hotspot y from its own origin (#15898)

The CursorData constructor copies hotxOrigin into hoty. Latent today:
both consumers call updateGetKey() before reading, and _checkUpdateScale
recomputes hoty from hotyOrigin - but any future read before that call
inherits the x value silently.
This commit is contained in:
Mariano Abad
2026-08-19 01:49:28 -03:00
committed by GitHub
parent 1984678785
commit 630b531108

View File

@@ -2842,7 +2842,7 @@ class CursorData {
required this.width,
required this.height,
}) : hotx = hotxOrigin * scale,
hoty = hotxOrigin * scale;
hoty = hotyOrigin * scale;
int _doubleToInt(double v) => (v * 10e6).round().toInt();