fix(web): align cursor bitmap and hotspot rounding

This commit is contained in:
fufesou
2026-09-12 00:20:28 +08:00
parent a7f1eb4c25
commit 5f4bb00007
3 changed files with 69 additions and 5 deletions

View File

@@ -2882,7 +2882,7 @@ class CursorData {
int _doubleToInt(double v) => (v * 10e6).round().toInt();
bool get _usesLogicalCursorPixels => isLinux || isMacOS;
bool get _usesLogicalCursorPixels => isLinux || isMacOS || isWeb;
int get scaledWidth => _scaledDimension(width, scale);
int get scaledHeight => _scaledDimension(height, scale);