ustbhuangyi / better-scroll

:scroll: inspired by iscroll, and it supports more features and has a better scroll perfermance

Home Page:https://better-scroll.github.io/docs/en-US/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

移动端 pulldown 插件两手操作BUG。

jiaZeEn opened this issue · comments

一手下拉,且下拉区域不超过 threshold 阈值,另一只点击屏幕。下拉值会卡住,没有回弹。
现在的解决办法是添加 touchend 监听判断结束下拉。

<div
    class="pulldown-wrap"
    @touchend="onTouchEnd"
  >
    <div class="pulldown-bswrapper" ref="bsWrap">
      <div class="bs-scroller">
        <div class="pulldown-wrapper">
          <Lottie></Lottie>
        </div>
        <div class="bs-contenter" v-resize="contentReSize">
          <slot></slot>
        </div>
      </div>
    </div>
</div>
this.bsContext = new BScrol(...)
this.bsContext.on('pullingDown', () => {
   refreshing = true
})
onTouchEnd() {
      if (this.y > 0 && !this.refreshing) {
        refreshing = false
        this.bsContext.finishPullDown()
      }
}

我也发现了这个问题,没啥好的解决方法