From 56c82574ec6947ab7a6da7c89e43296b6df7cacf Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 5 May 2024 10:55:32 -0700 Subject: [PATCH] fix: correctly detect navigation state to external url --- src/routes/+layout.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e5315c0..edc1883 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -19,6 +19,8 @@ root = document.getElementsByTagName('html')[0]; root?.classList.add('smoothscroll'); + + navigating = false; }); beforeNavigate(() => { @@ -45,3 +47,4 @@