【发布时间】:2019-06-25 10:19:23
【问题描述】:
当我多次单击主“英雄”滑动滑块 (10) 时。视图中的拇指不同步,活动拇指不再在视图中。
我正在尝试在引导模式中将两个滑动器滑块链接在一起。拇指滑块是一个垂直的两列滑块,并链接到模态内的主要“英雄”滑块。
向下滚动页面并单击“查看 23 张照片”以打开模式。 https://transmission.mecum.tv/2019/06/18/milk-money/
const $id = $(this).attr('id');
modalThumbs = new Swiper('#' + $id + ' .gallery-modal-thumbs .swiper-container', {
direction: 'vertical',
observer: true,
observeParents: true,
spaceBetween: 20,
slidesPerColumn: 2,
slidesPerView: 5,
navigation: {
nextEl: '#' + $id + ' .modal-thumb-next button',
prevEl: '#' + $id + ' .modal-thumb-prev button',
},
});
modalHero = new Swiper('#' + $id + ' .gallery-modal-hero .swiper-container', {
loop: true,
observer: true,
observeParents: true,
simulateTouch: false,
spaceBetween: 0,
speed: 500,
navigation: {
nextEl: '#' + $id + ' .modal-hero-next button',
prevEl: '#' + $id + ' .modal-hero-prev button',
},
pagination: {
el: '#' + $id + ' .swiper-pagination',
type: 'fraction',
},
thumbs: {
swiper: gallerySliders[$id].modalThumbs,
},
});
活动的缩略图幻灯片应始终可见。
【问题讨论】:
-
OT:我想看看,但在任何地方都找不到提到的链接。 This is a screenshot of the page in FF,图像无法正确缩放。在浏览器控制台中只看到两个警告并且没有错误,因此很可能不是由于脚本被阻止或丢失。
-
看起来我在那里遇到了 flexbox 问题。现在在 Firefox 上应该可以了。
-
现在在 FF 中看起来真的很棒!
标签: javascript jquery swiper