don't smooth scroll image hashes on gallery

This commit is contained in:
Chuck Dries 2023-03-11 00:31:33 -08:00
parent ea37aa680c
commit 8e669720bd

View File

@ -121,7 +121,7 @@ const GalleryPage = ({
console.log("scrolling into view manually", el.offsetTop); console.log("scrolling into view manually", el.offsetTop);
el.scrollIntoView({ el.scrollIntoView({
block: hash.startsWith("all") ? "start" : "center", block: hash.startsWith("all") ? "start" : "center",
behavior: "smooth", behavior: hash.startsWith("all") ? "smooth" : "auto",
}); });
setTimeout(() => { setTimeout(() => {
window.addEventListener("scroll", removeHash); window.addEventListener("scroll", removeHash);