提交 caebcfc3 编写于 作者: 雪洛's avatar 雪洛

fix: 修复自定义长列表iOS app端bounce期间卡顿的Bug

上级 1e3e1b4f
...@@ -83,7 +83,10 @@ ...@@ -83,7 +83,10 @@
return return
} }
const scrollTop = e.detail.scrollTop const scrollTop = e.detail.scrollTop
this.lastScrollTop = 0 if(scrollTop === this.lastScrollTop || scrollTop < 0) {
return
}
this.lastScrollTop = scrollTop
if (scrollTop < this.offsetThreshold[1] || scrollTop > this.offsetThreshold[2]) { if (scrollTop < this.offsetThreshold[1] || scrollTop > this.offsetThreshold[2]) {
this.queue(scrollTop) this.queue(scrollTop)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册