From fde563e46e97f53062c85d62a27f87d2f397b37d Mon Sep 17 00:00:00 2001 From: Shea Duma Date: Sat, 16 May 2026 14:00:14 +0300 Subject: [PATCH] changed it to zoom to fit to container initially regardless of size sinze with the button its easy to get to the natural size, and it helps for sending pixelart --- src/app/hooks/useImageGestures.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/hooks/useImageGestures.ts b/src/app/hooks/useImageGestures.ts index 612728858..e9e6e4687 100644 --- a/src/app/hooks/useImageGestures.ts +++ b/src/app/hooks/useImageGestures.ts @@ -236,7 +236,7 @@ export const useImageGestures = (active: boolean, step = 0.2, min = 0.1, max = 5 } const heightRatio = height / img.naturalHeight; const widthRatio = width / img.naturalWidth; - const fitZoom = Math.min(heightRatio, widthRatio, 1); + const fitZoom = Math.min(heightRatio, widthRatio); img.style.transition = 'none'; setFitRatio(fitZoom);