- 当前 Bug 的表现(可附上截图)
不可滑动,可点击
- 预期表现
可滑动,可点击
- 复现路径
- 提供一个最简复现 Demo
var swiper3 = new Swiper("#swiper-newsList", {
observer: true,
observeParents: true,
preventInteractionOnTransition: true,
autoHeight: true,
});
var swiper2 = new Swiper(’#swiper-tags’, {
loop: true,
loopAdditionalSlides: 1,
slidesPerView: ‘auto’,
observer: true,
observeParents: true,
preventInteractionOnTransition: true,
onClick: function (swiper) {
swiper3.slideTo(swiper.clickedIndex, 300, false);
$(’#news_nav_’ + swiper.clickedIndex + ‘’).addClass(‘active’).siblings().removeClass(‘active’);
var ss = swiper.slides[swiper.clickedIndex].id;
that.currentTag.set(ss);
}
});
swiper3.params.onSlideChangeStart = function (swiper) {
swiper2.slideTo(swiper.activeIndex, 300, false);
$(’#news_nav_’ + swiper.activeIndex + ‘’).addClass(‘active’).siblings().removeClass(‘active’);
var ss = swiper.slides[swiper.activeIndex].id;
that.currentTag.set(ss);
}