From 5719debbaaf805fb2d338f1f16e959cc2b8a0ff6 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 29 Jun 2026 08:06:02 -0500 Subject: [PATCH] messing with zoom/reset --- src/transcription/ui/components/document_panzoom.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);