Swiper内tap事件触发swiper的animationfinish事件
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 > |