From d6498324ca60309faa143073d335e98a5e14eec2 Mon Sep 17 00:00:00 2001 From: stirling-image Date: Tue, 14 Apr 2026 15:45:33 +0800 Subject: [PATCH] fix(passport-photo): restrict zoom to 1x-3x so preview matches download exactly --- apps/web/src/components/tools/passport-photo-settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/tools/passport-photo-settings.tsx b/apps/web/src/components/tools/passport-photo-settings.tsx index 18134dbb..6d57875f 100644 --- a/apps/web/src/components/tools/passport-photo-settings.tsx +++ b/apps/web/src/components/tools/passport-photo-settings.tsx @@ -1063,7 +1063,7 @@ export function PassportPhotoPreview() { const handleWheel = useCallback( (e: React.WheelEvent) => { e.preventDefault(); - setZoom(Math.max(0.5, Math.min(3, zoom + (e.deltaY > 0 ? -0.1 : 0.1)))); + setZoom(Math.max(1, Math.min(3, zoom + (e.deltaY > 0 ? -0.1 : 0.1)))); }, [zoom, setZoom], ); @@ -1106,7 +1106,7 @@ export function PassportPhotoPreview() {