attempt to fix scroll behavior

This commit is contained in:
Hayden 2023-01-01 12:46:59 -09:00
parent 59ebf0af73
commit 7c240a563b
No known key found for this signature in database
GPG key ID: 17CF79474E257545
5 changed files with 7 additions and 18 deletions

View file

@ -0,0 +1,7 @@
export default defineNuxtPlugin(nuxtApp => {
nuxtApp.hook("page:finish", () => {
console.log(document.body);
document.body.scrollTo({ top: 0 });
console.log("page:finish");
});
});