scroll-view标签binddragend滚动结束方法IOS端不触发
https://developers.weixin.qq.com/miniprogram/dev/component/scroll-view.html html <scroll-view
class="scroll-day"
scroll-x="true"
bounces="{{false}}"
enhanced="{{true}}"
bindscroll="handScroll"
binddragstart="handScrollStart"
binddragend="handScrollEnd"
scroll-into-view="{{scrollintoview}}"
style="width: 654rpx">
</scroll-view>
//js
// 滑动开始
handScrollStart(e) {
console.log(e, "滑动开始")
this.setData({
scrollleft: e.detail.scrollLeft
})
},
// 滑动结束
handScrollEnd(e) {
console.log(e, "滑动结束")//ios端突然不触发该方法,昨天还是好的
},