zooming fix

This commit is contained in:
John Lancaster
2026-06-28 22:20:48 -05:00
parent ca5c9f787f
commit e7c7ab71b4
@@ -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 }});
}});
}});