Vant: [Bug Report] Swipe 轮播change事件不能监听到所有的swipeItem的改变

Created on 1 Mar 2019  ·  2Comments  ·  Source: youzan/vant

Describe the bug
使用swiper事件不能监听到所有的swipeItem的改变,在swipe change事件中打印当前swipeItem的当前索引值,并且只在两个swipeItem间来回滑动,出现监听间断的情况是无序的(如下图,图中连续出现多个1的期间我一直在左右滑动,但是并没有监听到从第二个swipeItem滑倒第一个swipe Item的改变)
default

Screenshots
我的使用情况:
Add screenshots to help explain your problem.
default
default
Environment

  • Device: pc
  • Browser: chrome
  • Vant Version: 1.4.3

Reproduce
Provide the steps to reproduce and if possible a minimal demo of the problem via jsfiddle.
https://jsfiddle.net/dfarLdko/522/

🐞 bug

All 2 comments

感谢反馈,连续左右来回滑动的时候,确实会出现 change 的值是同一个的情况。下个版本会修复这个问题

已在 1.6.9 版本修复

Was this page helpful?
0 / 5 - 0 ratings