我尝试用这样的拇指制作一个滑块但
我希望我的滑块是loop=true
并且我的拇指是loop=false
。这是我的设置
var galleryTop = new Swiper('.gallery-top', {
spaceBetween: 10,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
loop: true
});
var galleryThumbs = new Swiper('.gallery-thumbs', {
spaceBetween: 10,
centeredSlides: true,
slidesPerView: 'auto',
touchRatio: 0.2,
slideToClickedSlide: true
});
galleryTop.controller.control = galleryThumbs;
galleryThumbs.controller.control = galleryTop;
但一切都不起作用。我的滑块和我的拇指不做同样的事情。怎么做谢谢。