fix(cursor): preserve unzoomed Web size across browser DPRs

This commit is contained in:
fufesou
2026-09-12 15:42:47 +08:00
parent 85e7c72ccd
commit d65faca21f
2 changed files with 140 additions and 1 deletions

View File

@@ -1127,7 +1127,7 @@ class _ImagePaintState extends State<ImagePaint> {
} else {
if (zoomCursor.value || isViewOriginal()) {
cursorScale = s;
} else {
} else if (!isWeb) {
// NSCursor and GdkCursor treat the bitmap size as logical
// pixels, so an unzoomed cursor must be shrunk by the DPR to
// keep 1 remote px == 1 physical px, the size Original view