浏览代码

修复vertical-scroll.vue组件下拉刷新距离设置无效的bug (#358)

langyuxiansheng 5 年之前
父节点
当前提交
eabd7eb3ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/scroller/vertical-scroll.vue

+ 1 - 1
src/packages/scroller/vertical-scroll.vue

@@ -135,7 +135,7 @@ export default {
       if (type === 'end') {
         if (updateMove > 0) {
           this.realMove = 0;
-          if ((!this.isShowLoadMore || this.isFirstPull) && !this.isLoading && updateMove > 20) {
+          if ((!this.isShowLoadMore || this.isFirstPull) && !this.isLoading && updateMove > this.stretch) {
             updateMove = 50;
             clearTimeout(this.timerEmit);
             this.timerEmit = setTimeout(() => {