BUG表现:
在swiper的swiper-item中有个view,给他绑定了bindtap事件。
结果点击该view的时候,既触发了tap事件又触发了swiper的animationfinish事件。
在开发者工具上表现是正常的。
预期表现:
点击view时只触发tap事件不触发animationfinish事件
* 提供一个最简复现 Demo
< swiper class = "p-area" indicator-dots = "true" autoplay = "{{autoplay}}" duration = "500" bindanimationfinish = "areaChange" > < block wx:for = "{{areas}}" wx:key = "unique" > < swiper-item > < view class = "swiper-item" > < view class = "area-name" >{{item.name}}</ view > < view > < view class = "area-p {{p.value==currentp?'area-p-active':''}}" wx:for = "{{item.ps}}" wx:key = "unique" wx:for-item = "p" data-value = "{{p.value}}" data-name = "{{p.name}}" catchtap = 'selectp' > < image style = "width:100%" mode = "widthFix" src = "{{domain}}/img/p/forms/{{p.value}}-1.png" ></ image > < view class = "area-pokmeon-name" >{{p.value}} {{p.name}}</ view > </ view > </ view > </ view > </ swiper-item > </ block > </ swiper > |
已解决,mpvue添加@touchend.stop 小程序原生方式添加catchtouchend
哥,能写详细一点吗,不知道在哪里添加,万分感谢
请问这个问题还没解决吗?问题又复现了
后来没研究了,用的别的方式解决
我也出现了这个问题
有大神解惑一下么?