scroll-view标签binddragend滚动结束方法IOS端不触发
发布于 4 年前 作者 xiuyingsu 5089 次浏览 来自 官方Issues

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端突然不触发该方法,昨天还是好的
  },
1 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

回到顶部