|
这是我初始化swiper的方法,当滑动缓慢的时候slideNextTransitionEnd方法不执行,请问谁遇到过吗
var swiper = new Swiper('.swiper-container', {
direction: 'vertical',
onInit: function() {
console.log(11)
},
virtual: {
slides: data,
renderSlide: function(slide, index) {//dom结构
return "<div class='swiper-slide'>测试</div>";
},
},
on: {
slidePrevTransitionStart: function() { //下滑开始
console.log(11)
},
slidePrevTransitionEnd: function() { //下滑结束
console.log(22);
},
slideNextTransitionStart: function() { //上滑开始
console.log(33)
},
slideNextTransitionEnd: function() { //上滑结束
alert(1)
console.log(44);
},
slideChangeTransitionEnd: function() {
console.log('end')
},
},
});
|
|