Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jiaZeEn opened this issue Mar 20, 2024 · 1 comment
Open

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

jiaZeEn opened this issue Mar 20, 2024 · 1 comment

Comments

@jiaZeEn
Copy link

jiaZeEn commented Mar 20, 2024

一手下拉,且下拉区域不超过 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()
      }
}
@lsj991028
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants