Skip to content

Commit 01d7811

Browse files
committed
adjust
1 parent fbf48bb commit 01d7811

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/js-scroll-effect-module.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,15 @@ export default class SCROLL_EFFECT_MODULE {
9494
// for Load-Event
9595
window.addEventListener('load', () => {
9696
this.Update();
97+
if(this.timer){
98+
clearTimeout(this.timer);
99+
this.timer = setTimeout(()=>{
100+
this._StoreElementStateAtPosList();
101+
}, this.config.firstDelay);
102+
}
97103
});
98104

99-
setTimeout(()=>{
105+
this.timer = setTimeout(()=>{
100106
this._StoreElementStateAtPosList();
101107
}, this.config.firstDelay);
102108

0 commit comments

Comments
 (0)