diff --git a/src/lib/components/View.svelte b/src/lib/components/View.svelte index e60e436b..da0e796e 100644 --- a/src/lib/components/View.svelte +++ b/src/lib/components/View.svelte @@ -35,7 +35,11 @@ }; const handlePanZoom = (state: State, graphDiv: SVGSVGElement) => { - panZoomState.updateElement(graphDiv, state); + try { + panZoomState.updateElement(graphDiv, state); + } catch (error) { + console.error('PanZoom error:', error); + } }; const handleStateChange = async (state: ValidatedState) => {