improvement: don't set anchor on scroll, only on click

This commit is contained in:
Zach Daniel 2023-01-04 11:03:34 -05:00
parent 7e11542667
commit 4dbce29e9b

View file

@ -174,7 +174,6 @@ Hooks.RightNav = {
for (entry of entries) {
if (entry.isIntersecting) {
this.setAriaCurrent(entry.target.id);
history.replaceState(null, null, `#${entry.target.id}`);
}
}
},