diff --git a/src/transcription/ui/components/document_panzoom.py b/src/transcription/ui/components/document_panzoom.py index 5407169..df45d82 100644 --- a/src/transcription/ui/components/document_panzoom.py +++ b/src/transcription/ui/components/document_panzoom.py @@ -151,10 +151,8 @@ def _attach_panzoom(host_id: str) -> None: window.__transcriptionPanzoom[{host_id!r}] = instance; requestAnimationFrame(() => {{ - requestAnimationFrame(() => {{ - instance.reset({{ animate: false, force: true }}); - instance.setOptions({{ contain: undefined }}); - }}); + instance.reset({{ animate: false, force: true }}); + instance.setOptions({{ contain: undefined }}); }}); const wheelHandler = (event) => instance.zoomWithWheel(event);