Skip to content

Commit

Permalink
fix: missing replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
orange4glace committed Feb 12, 2021
1 parent 8351e67 commit 7794826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Router.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7794826

Please sign in to comment.