improve scroll position navigation behavior

This commit is contained in:
sbwalker
2024-05-17 15:42:13 -04:00
parent 5c72e6d335
commit 71d220e7a4
2 changed files with 19 additions and 13 deletions

View File

@ -1,12 +0,0 @@
function setScrollPosition() {
window.scrollTo({
top: 0,
left: 0,
behavior: 'instant'
});
}
export function onUpdate() {
setScrollPosition();
}