fix(web): show the correct cursor at crop bounds when editing an asset (#26748)

This commit is contained in:
Snowknight26
2026-03-09 13:39:01 -05:00
committed by GitHub
parent a47b232235
commit 4791d9c0c3
2 changed files with 41 additions and 1 deletions
@@ -677,7 +677,7 @@ class TransformManager implements EditToolManager {
const { x, y, width, height } = this.region;
const sensitivity = 10;
const cornerSensitivity = 15;
const { width: imgWidth, height: imgHeight } = this.cropImageSize;
const { width: imgWidth, height: imgHeight } = this.previewImageSize;
const outOfBound = mouseX > imgWidth || mouseY > imgHeight || mouseX < 0 || mouseY < 0;
if (outOfBound) {