Skip to content

Commit

Permalink
1,579th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Nov 1, 2024
1 parent b7d04ce commit 69da03d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/plugins/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const router = createRouter({
],
scrollBehavior(to, from, savedPosition) {
if (to.hash) return { selector: to.hash };
if (savedPosition) return savedPosition;
return { top: 0 };
return savedPosition || from.meta.scrollPosition || { top: 0 };
},
});

Expand Down

0 comments on commit 69da03d

Please sign in to comment.