Circular slides?
See original GitHub issueFirst, thank your guys for this project, this is an awesome slide component I needed.
But I have a problem, this is my custom code from Demo 7 autoplay
<div style={styles.root}>
<AutoPlaySwipeableViews index={index} onChangeIndex={this.handleChangeIndex} interval={1000} autoplay={true}>
<div style={Object.assign({}, styles.slide, styles.slide1)}>
slide n°1======
</div>
<div style={Object.assign({}, styles.slide, styles.slide2)}>
slide n°2==============
</div>
<div style={Object.assign({}, styles.slide, styles.slide3)}>
slide n°3=======================
</div>
</AutoPlaySwipeableViews>
<Pagination
dots={3}
index={index}
onChangeIndex={this.handleChangeIndex}
/>
</div>
In PC, it works well, I don’t neet touch event, slide n°3 can swipe to slide n°1.

But in mobile web, I use touch event. I swipe to last one: slide n°3, then I can’t swipe to the first slide: slide n°1, and slide n°1 also can’t swipe to slide n°3 using touch event , is it a bug ?
I have found similar issues, https://github.com/oliviertassinari/react-swipeable-views/issues/169, https://github.com/oliviertassinari/react-swipeable-views/issues/22 but they seems different from my problem.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Free Circular Google Slides and PowerPoint Templates
Free circular process charts and diagrams for PowerPoint and Google Slides. Cycle diagram templates to show a series of events or steps in...
Read more >Circle Diagram Templates for PowerPoint & Google Slides
Download 100% editable circular diagrams for PowerPoint presentations with creative styles and effects, compatible with PowerPoint and Google Slides.
Read more >Circular Diagram PowerPoint Templates - Slidebazaar
You can download circular diagram PowerPoint templates & Keynote slides that suit your presentation from our library. These Circular PowerPoint Templates come ...
Read more >Presentations Slide Circular Designs | Template PPT
Find predesigned presentations slide circular designs, ppt templates cycles, and backgrounds designs for creating professional ppt ...
Read more >Cycle Diagrams for Google Slides & PowerPoint - Slidesgo
Use these versatile Cycle diagrams to talk about circular flows. Download them now as Google Slides theme or PowerPoint template.
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 Free
Top 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

Here is an example of implementation with 3 different slides:
This API has some pros and cons
Pros
slideRenderercallback property.Cons
For those who looking for a solution for dynamic infinit loop without switch case. Just use a small calculation. Get index subtract it with your data length and multiply it with how often data length take place in your current index.
Based on “Example with virtualize” https://www.npmjs.com/package/react-swipeable-views/v/0.8.1
Example:
Math.abs converts the value to positiv integer. Math.floor Round a number downward to its nearest integer.
The dataIndex can be used as selector.