Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: auto correct crop box pos on reset

httpjamesm760b63a303a1
diff --git a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
index 069a6b809b..0d953b8074 100644
--- a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
+++ b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
@@ -394,12 +394,7 @@ const ImageEditorOverlay = (props: IProps) => {
return;
}
- setCropBox({
- x: 0,
- y: 0,
- width: 100,
- height: 100,
- });
+ moveCropBoxToTopLeft();
setStartX(0);
setStartY(0);
setIsDragging(false);