swiper卡住
最近在iphone手机上面频繁出现swiper卡住,导致页面没有响应,无法进行操作。
做了一个最简单的demo,发现了卡住问题的一个可能性。
wxml:

wxss:

js:

使用iphone测试:(左右滑动;我尝试了好久,才复现的~并不能一下子复现。但是开发者工具很容易复现,我开了远程调试,对比了两个出现卡住的相同点)
iphone 截屏:

远程调试报告:


current缺少一个中间状态:current:1
这时候就卡住了。
开发者工具很容易卡住:

current缺少一个中间状态:current:1
不能确定是不是这个因素导致的~但是是线上的功能,频率比较高,还是希望可以得到一些建议,避免发生,感谢!