From 7794826fc86f3f76ebc253836514fb7482edc09d Mon Sep 17 00:00:00 2001 From: orange4glace Date: Fri, 12 Feb 2021 18:45:07 +0900 Subject: [PATCH] fix: missing replacements --- Router.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Router.svelte b/Router.svelte index 5440afa..616bd5b 100644 --- a/Router.svelte +++ b/Router.svelte @@ -433,7 +433,7 @@ if (restoreScrollState) { afterUpdate(() => { // If this exists, then this is a back navigation: restore the scroll position if (previousScrollState) { - window.scrollTo(previousScrollState.scrollX, previousScrollState.scrollY) + window.scrollTo(previousScrollState.__svelte_spa_router_scrollX, previousScrollState.__svelte_spa_router_scrollY) } else { // Otherwise this is a forward navigation: scroll to top