diff --git a/runtime/app.js b/runtime/app.js index 223cb1d..b90f9a7 100644 --- a/runtime/app.js +++ b/runtime/app.js @@ -77,7 +77,6 @@ const app = { scroll_history[cid] = { x: 0, y: 0 }; history.pushState({ id }, '', url.href); - event.preventDefault(); } selected.route.load().then(mod => { @@ -121,7 +120,9 @@ const app = { const scroll = scroll_state(); - navigate(new URL(a.href), null); + if (navigate(new URL(a.href), null)) { + event.preventDefault(); + } }); function preload(event) {