diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-10 16:59:42 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-10 16:59:42 +0300 |
commit | 8d031cf268b6da6958e7ff3843917a810ac0ea0d (patch) | |
tree | 63bf47aab7187fd2ed84c0f1df617269d078b6cd /src | |
parent | 14cb2c2db99b1857f9a046291eefc6766b4e77fb (diff) |
fix: scrollEvent delay
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 416b7092..50f9381e 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -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); } |