Skip to content
Snippets Groups Projects
Commit 4a18707f authored by Austin Anderson's avatar Austin Anderson
Browse files

Time to debug the scrolling...

parent 743fbd5a
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,7 @@ $(function () { ...@@ -107,6 +107,7 @@ $(function () {
// If the hash matches a Category on the page, then scroll to it once the // If the hash matches a Category on the page, then scroll to it once the
// window gets focus (this handles e.g. if opened in the background) // window gets focus (this handles e.g. if opened in the background)
} else if (document.getElementById(unescaped)) { } else if (document.getElementById(unescaped)) {
console.log("Scrolling to", unescaped)
document.getElementById(unescaped).scrollIntoView({ document.getElementById(unescaped).scrollIntoView({
behavior: 'smooth' behavior: 'smooth'
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment