From 48c560c9799ac2f185e395cc58db139ecee02515 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 15 Oct 2025 15:58:04 +0530 Subject: [PATCH] fix: Catch panZoom errors --- src/lib/components/View.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) => {