mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 14:56:19 +01:00
fix: scrollEvent delay
This commit is contained in:
parent
14cb2c2db9
commit
8d031cf268
2 changed files with 3 additions and 12 deletions
|
@ -931,15 +931,9 @@ var Theme = /*#__PURE__*/function () {
|
||||||
_step2;
|
_step2;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var _loop = function _loop() {
|
|
||||||
var event = _step2.value;
|
|
||||||
window.setTimeout(function () {
|
|
||||||
event();
|
|
||||||
}, 100);
|
|
||||||
};
|
|
||||||
|
|
||||||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||||||
_loop();
|
var event = _step2.value;
|
||||||
|
event();
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
_iterator2.e(err);
|
_iterator2.e(err);
|
||||||
|
@ -947,7 +941,6 @@ var Theme = /*#__PURE__*/function () {
|
||||||
_iterator2.f();
|
_iterator2.f();
|
||||||
}
|
}
|
||||||
|
|
||||||
;
|
|
||||||
_this12.oldScrollTop = _this12.newScrollTop;
|
_this12.oldScrollTop = _this12.newScrollTop;
|
||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -689,9 +689,7 @@ class Theme {
|
||||||
}
|
}
|
||||||
$fixedButtons.style.display = 'none';
|
$fixedButtons.style.display = 'none';
|
||||||
}
|
}
|
||||||
for (let event of this.scrollEventSet) window.setTimeout(() => {
|
for (let event of this.scrollEventSet) event();
|
||||||
event();
|
|
||||||
}, 100);;
|
|
||||||
this.oldScrollTop = this.newScrollTop;
|
this.oldScrollTop = this.newScrollTop;
|
||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue