[Bug] Swiper is not looping correctly
See original GitHub issueVue.js version and component version
2.5.17
Nuxt version
2.0.0-25550715.56db988
Reproduction Link
https://github.com/AndrewBogdanovTSS/nuxt2-awesome-swiper
Steps to reproduce
- Specify swiper options as stated below
- Set div.swiper-slide style width to
auto
to wrap to a size of the provided image
Swiper settings config object
swiperOptions: {
pagination: {
el: '.swiper-pagination',
clickable: true
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev'
},
loop: true,
slidesPerView: 'auto',
loopedSlides: 10
}
What is Expected?
Swiper is looping indefinitely in both directions
What is actually happening?
Swiper is looping indefinitely only backwards
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:21
Top Results From Across the Web
Swiper slider not working as expected with loop: true and ...
Swiper slider is not working properly with loop set to true and centeredSlides set to false. When a thumbnail or a navigation arrow...
Read more >Swiper Loop Bug - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >Swiper Changelog
Fixed issue with not working correctly touchReleaseOnEdges on iOS; Fixed issue with not working allowSlideNext/Prev change on Breakpoints ...
Read more >Swiper Demo 20 Loop Mode Infinite Loop - StackBlitz
<link rel="stylesheet" href="https://unpkg. com/swiper/swiper-bundle.min.css">. </head>. <body>. <!-- Swiper -->. <div class="swiper-container">.
Read more >Swiper doesn't work properly (cannot swipe) - Questions
Hi there, I'm having trouble with a dynamic swiper slider I've created. ... data-slides-per-view="auto" data-loop="true" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok for me this reolved the problem: https://github.com/surmon-china/vue-awesome-swiper/issues/322#issuecomment-383888576
these settings worked for me 👍
It seems that by adding
autoplay
the slider works as expected.