aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-10 20:04:12 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-10 20:04:12 +0200
commitef11cf94b189ba4595a027491135e53a17878f5b (patch)
tree5d5ac038f63240c609067b66c7ed52bce1fdf37e
parent5a12f665ea751534af60970e0f5f7607710bc193 (diff)
downloadjellything-ef11cf94b189ba4595a027491135e53a17878f5b.tar
jellything-ef11cf94b189ba4595a027491135e53a17878f5b.tar.bz2
jellything-ef11cf94b189ba4595a027491135e53a17878f5b.tar.zst
fixup! Scroll to top of page when clicking item
-rw-r--r--web/script/transition.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/script/transition.ts b/web/script/transition.ts
index 26630ee..5e8e9e2 100644
--- a/web/script/transition.ts
+++ b/web/script/transition.ts
@@ -70,7 +70,7 @@ function prepare_load(href: string, back?: boolean) {
document.head.innerHTML = head
document.body.outerHTML = body
globalThis.dispatchEvent(new Event("DOMContentLoaded"))
- window.scrollTo({ top: 0 });
+ globalThis.scrollTo({ top: 0 });
fade(true)
}
}