-
I have tried to add html {
scroll-behavior: auto !important;
} in the following css files: |
Beta Was this translation helpful? Give feedback.
Answered by
nullvm
Mar 5, 2025
Replies: 1 comment
-
In case someone come across this problem. After taking a look at the source code, I found the following at line 44 at document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "auto"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
}); by changing the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nullvm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case someone come across this problem.
After taking a look at the source code, I found the following at line 44 at
layouts/partials/footer.html