carousel stop when i swiper to right, it can't loop
See original GitHub issuemy code:
<Carousel
layout={'default'}
data={this.state.entries}
renderItem={this._renderItem.bind(this)}
sliderWidth={viewportWidth}
itemWidth={viewportWidth*0.575}
loop={true}
firstItem={2}
loopClonesPerSide={10}
//enableMomentum={true}
enableSnap={true}
inactiveSlideScale={0.95}
inactiveSlideOpacity={0.8}
onSnapToItem={(index) => this.setState({currentSwiperFilm:index}) }
/>
example when i swiper end of right, slider not loop
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
carousel stop when i swiper to right, it can't loop · Issue #358
My guess is that the 'hidden' slides are actually sitting on top of the carousel, thus preventing tap/slide events on the shown slide....
Read more >Swiper continous loop without pause between sliding
This works fine so far. But is it possible with the swiper not to stop between each 3 slides? Right now there is...
Read more >AutoplayOptions | Swiper - v8.4.5
When enabled autoplay will be paused on mouse enter over Swiper container. If disableOnInteraction is also enabled, it will stop autoplay instead of...
Read more >Bootstrap JS Carousel Reference
wrap, boolean, true, Specifies whether the carousel should go through all slides continuously, or stop at the last slide. true - cycle continuously;...
Read more >How do I stop carousel from looping? - Shopify Community
owlCarousel ({ loop:false, margin: 5, nav: true, navText: ["<i ... It works fine on desktop, but you cannot swipe left/right on mobile.
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
⚠️ You did not follow the contributing guidelines!
As stated in these:
@nguyenvanphuc2203 Please provide a Snack example that reproduces the issue, otherwise we won’t be able to help you and the thread will be closed. You’ve already been asked to do so in #347.
@se1exin Your issue is not the same since it has to do with custom layouts and a pesky
zIndex
issue. But your guess is definitely right 😉 Please see #262 for more info and to find out some workarounds.I had this exact problem on iOS yesterday and fixed it by stopping the render of hidden slides:
My guess is that the ‘hidden’ slides are actually sitting on top of the carousel, thus preventing tap/slide events on the shown slide.
Note this does not fix the root issue, but is a (dirty) work around. I didn’t have time yesterday to write a full bug report… and now you have posted one for me 😃
Edit: My Carousel setup (using Stack layout)