提交 536b285c 编写于 作者: D DCloud_LXH

fix: 修复快速滑动时scroll handler获取不正确

上级 2fefeddd
......@@ -465,8 +465,6 @@ export default {
}
},
_handleScroll: function ($event) {
if (!($event.timeStamp - this._lastScrollTime < 20)) {
this._lastScrollTime = $event.timeStamp
const target = $event.target
this.$trigger('scroll', $event, {
scrollLeft: target.scrollLeft,
......@@ -528,7 +526,6 @@ export default {
}
this.lastScrollTop = target.scrollTop
this.lastScrollLeft = target.scrollLeft
}
},
_scrollTopChanged: function (val) {
if (this.scrollY) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册