Skip to content

Commit

Permalink
Merge pull request #235 from karl-zylinski/better-overview-jitter-fix
Browse files Browse the repository at this point in the history
Better fix for overview jitter bug
  • Loading branch information
laytan authored Aug 28, 2024
2 parents 54fb810 + 2c72477 commit bf0bf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/odin/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ window.addEventListener('DOMContentLoaded', () => {

var anchor = document.querySelector(`nav li a[href="#${id}"]`);
anchor.parentElement.classList.add('active');
anchor.parentElement.scrollIntoView({ block: "nearest", behavior: "smooth" });
anchor.scrollIntoView({ block: "nearest" });
}
}
})
Expand Down

0 comments on commit bf0bf74

Please sign in to comment.