From 630b531108f48363dac096de41729a454978ab66 Mon Sep 17 00:00:00 2001 From: Mariano Abad Date: Wed, 19 Aug 2026 01:49:28 -0300 Subject: [PATCH] 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. --- flutter/lib/models/model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart index 74f72021b..129f67dea 100644 --- a/flutter/lib/models/model.dart +++ b/flutter/lib/models/model.dart @@ -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();