mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): show the correct cursor at crop bounds when editing an asset (#26748)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user