<scroll-view
class="scroll-wrap"
scroll-y
bounces="{{true}}"
adjustDecelerationVelocity="adjustDecelerationVelocity"
type="custom"
scroll-top="{{scrollTop}}"
show-scrollbar="{{false}}"
refresher-enabled="{{enablePullRefresh}}"
refresher-threshold="{{ refresherThreshold }}"
refresher-default-style="none"
refresher-triggered="{{ refreshing }}"
bind:scroll="handleScroll"
bind:scrolltolower="onScrollToLower"
bind:refresherpulling="onPulling"
bind:refresherrefresh="onRefresh"
bind:refresherrestore="onRestore"
bind:refresherabort="onAbort"
>
<view slot="refresher" class="refresher-placeholder">
<view class="tips">{{ refresherTip }}</view>
<view class="icon {{ refreshing ? 'refreshing' : '' }}" style="transform: rotate({{ iconRotate }}deg)"></view>
</view>
<slot></slot>
</scroll-view>
我在onRefresh里设置了5秒后把refreshing改为false,当我下拉距离刚好或者略微超出refresherThreshold值的时候,无论refreshing是true还是false,永远都是先触发onRefresh,然后立刻触发onRestore。
只有下拉距离超出refresherThreshold值比较多的时候,才会先触发onRefresh,5秒后再触发onRestore。
这是什么毛病?
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)