somewhat fix scrolling behaviour (#127)

Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/127
This commit is contained in:
floatingghost 2022-08-11 17:25:43 +00:00
parent cbf883ab1e
commit 4dcca7cf53
3 changed files with 8 additions and 7 deletions

View file

@ -377,8 +377,9 @@ const afterStoreSetup = async ({ store, i18n }) => {
routes: routes(store),
scrollBehavior: (to, _from, savedPosition) => {
if (to.matched.some(m => m.meta.dontScroll)) {
return false
return {}
}
return savedPosition || { left: 0, top: 0 }
}
})