fix: scrollEvent delay

This commit is contained in:
Dillon
2022-05-10 21:59:42 +08:00
parent 14cb2c2db9
commit 8d031cf268
2 changed files with 3 additions and 12 deletions

View File

@@ -689,9 +689,7 @@ class Theme {
}
$fixedButtons.style.display = 'none';
}
for (let event of this.scrollEventSet) window.setTimeout(() => {
event();
}, 100);;
for (let event of this.scrollEventSet) event();
this.oldScrollTop = this.newScrollTop;
}, false);
}