diff --git a/src/transcription/ui/components/document_panzoom.py b/src/transcription/ui/components/document_panzoom.py index ff60304..5407169 100644 --- a/src/transcription/ui/components/document_panzoom.py +++ b/src/transcription/ui/components/document_panzoom.py @@ -137,7 +137,7 @@ def _attach_panzoom(host_id: str) -> None: }} const startScale = fitScale; - const minScale = 0.1; + const minScale = 0.01; const instance = Panzoom(target, {{ maxScale: 32, minScale: minScale, @@ -153,6 +153,7 @@ def _attach_panzoom(host_id: str) -> None: requestAnimationFrame(() => {{ requestAnimationFrame(() => {{ instance.reset({{ animate: false, force: true }}); + instance.setOptions({{ contain: undefined }}); }}); }});