don't smooth scroll image hashes on gallery
This commit is contained in:
parent
ea37aa680c
commit
8e669720bd
@ -121,7 +121,7 @@ const GalleryPage = ({
|
||||
console.log("scrolling into view manually", el.offsetTop);
|
||||
el.scrollIntoView({
|
||||
block: hash.startsWith("all") ? "start" : "center",
|
||||
behavior: "smooth",
|
||||
behavior: hash.startsWith("all") ? "smooth" : "auto",
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.addEventListener("scroll", removeHash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user