如题,使用scroll-view组件设置scroll-into-view属性,在ios设备上出现闪退问题
wxml代码:
<scroll-view class="scroll-box" scroll-x scroll-with-animation scroll-into-view="{{toView}}" bindtouchstart="touchStart" bindtouchend="touchEnd">
js代码:
this.setData({
toView: `card_${this.currentView}`
});
执行这段代码在iOS设备上就会出现闪退问题,在Android设备上正常使用
写个可复现问题的代码片段,我测试下。麻烦贴下手机机型和微信客户端版本号。
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
闪退IOS设备:iPad(6th),iOS 13.3 微信版本:7.0.12
代码片段:https://developers.weixin.qq.com/s/oKXQDfmZ7agP
麻烦了,谢谢
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
闪退IOS设备:iPad(6th),iOS 13.3 微信版本:7.0.12
代码片段:https://developers.weixin.qq.com/s/oKXQDfmZ7agP
麻烦了,谢谢
不会吧,这个我一直在用的,ios上没碰到过这个问题
toView指定的id在scroll-view里面是存在的吗?
估计跟iOS系统版本,微信版本和基础库有关?