fix: Fix some bugs

This commit is contained in:
2025-01-10 09:33:47 +08:00
parent 01554db559
commit 8ea11ed1af

View File

@@ -24,7 +24,7 @@ tocBox.appendChild(div);
window.addEventListener('scroll', () => {
let currentActive = null;
tList.forEach(v => {
if (window.scrollY >= v.offsetTop - 100) {
if (window.scrollY >= v.offsetTop - 120) {
currentActive = v;
}
});