Fail more gracefully when svelte sneezes

This commit is contained in:
Jon Staab
2026-05-29 08:30:42 -07:00
parent 152d35f92a
commit ae071fefaa
+1 -1
View File
@@ -22,7 +22,7 @@
$effect(() => {
if (!containerEl) return
containerEl.addEventListener("touchmove", onTouchMove, {passive: false})
return () => containerEl!.removeEventListener("touchmove", onTouchMove)
return () => containerEl?.removeEventListener("touchmove", onTouchMove)
})
const onActionClick = () => {