diff options
-rw-r--r-- | main.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -276,7 +276,7 @@ window.addEventListener("hashchange", () => { if (newid == oldid) { const newoff = document.getElementById("main").lastChild.offsetTop; document.documentElement.scrollTop = newoff - (oldoff - oldscroll) - } + } else document.documentElement.scrollTop = oldscroll; state.path = newpath; |