Commit 92089556 authored by hbcui1984's avatar hbcui1984

Fix:上拉加载在选项卡页面,导致所有选项卡均触发的bug

parent 04a0c1f8
...@@ -64,9 +64,10 @@ ...@@ -64,9 +64,10 @@
} }
if (this.pullUpTips) { if (this.pullUpTips) {
this.element.addEventListener('dragup', this); this.element.addEventListener('dragup', this);
window.addEventListener('scroll', this);
if (this.isInScroll) { if (this.isInScroll) {
this.element.addEventListener('scrollbottom', this); this.element.addEventListener('scrollbottom', this);
} else {
window.addEventListener('scroll', this);
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment