移动端 pulldown 插件两手操作BUG。
jiaZeEn opened this issue · comments
jiazeen commented
一手下拉,且下拉区域不超过 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()
}
}
柠檬君 commented
我也发现了这个问题,没啥好的解决方法