mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
fix: Fix some bugs
This commit is contained in:
@@ -24,7 +24,7 @@ tocBox.appendChild(div);
|
|||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
let currentActive = null;
|
let currentActive = null;
|
||||||
tList.forEach(v => {
|
tList.forEach(v => {
|
||||||
if (window.scrollY >= v.offsetTop - 100) {
|
if (window.scrollY >= v.offsetTop - 120) {
|
||||||
currentActive = v;
|
currentActive = v;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user