Multiple issues with advanced use case #8160
matheusgrieger
started this conversation in
General
Replies: 1 comment
-
|
I have updated the CodeSandbox with an alternative using Controller instead of Thumbs, as it seems to be more closely aligned with what I'm trying to do. But most of the issues persist and new ones came up. I'll update the ticket description with more detailed information on those. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/qmksrr
Bug description
There are multiple issues when combining Thumbs/Controller, EffectFade, and Virtual modules, with other settings for advanced use case. Please let me know if I did anything wrong in my setup. I tried following the docs as closely as possible, but I made sure to take all caveats documented there into account.
1-
loopcauses thumbs to slide with weird/random behavior.2- Thumbs
slideToClickedSlideis not working, requiring additional event handlers to force-enable it. Sliding the thumbnails without these events does not change the active main slide.3-
autoHeightdoes not work at all with this setup.4- Links are not clickable in the main slider with FadeEffect enabled (also mentioned in #6908 which is closed).
5- Controller makes the controlled Swiper start on wrong index.
Expected Behavior
1- Thumbs/Controller Swiper should slide in the appropriate direction, and always execute the slide transition when clicking on other slides. Controller Swiper should correctly respond to dragging, without creating empty gaps at the end/start of the slides.
2- Clicking on thumbnails should activate the clicked slide and slide to it (because centeredSlides is enabled).
3- Swiper should recalculate the active slide height when rendering it.
4- Links should be clickable.
5- Starting index should be the same as active index from controller Swiper.
Actual Behavior
1- Sometimes it slides normally, other times it slides in the opposite direction, other times it just doesn't slide at all. When using Controller and click-and-dragging, Swiper shows empty spaces at the end/start of the controller Swiper, indicating the loop calculation is not working correctly.
2- Clicking on thumbnails update the main Swiper but doesn't even activate the clicked Thumb, highlighting the wrong Thumb. Additional event handlers are required for this to work.
3- The first slide has wrong height, and all other slides have 0 height. When using Controller, no slides work correctly.
4- Swiper is setting
pointer-events: nonefor all slides on the main Swiper.5- Controlled Swiper is starting on index 3 while the active slide on the controller Swiper is 0.
Swiper version
12.0.3
Platform/Target and Browser Versions
macOS Chrome 142.0.7444.176
Validations
Would you like to open a PR for this bug?
Beta Was this translation helpful? Give feedback.
All reactions