We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0bb1b9 + deeacee commit e0e6981Copy full SHA for e0e6981
src/ImageGallery.jsx
@@ -387,7 +387,7 @@ export default class ImageGallery extends React.Component {
387
let translateX = basetranslateX + (index * 100) + offsetPercentage
388
let zIndex = 1
389
390
- if (this.props.infinite && this.props.items.length > 1) {
+ if (this.props.infinite && this.props.items.length > 2) {
391
if (currentIndex === 0 && index === totalSlides) {
392
// make the last slide the slide before the first
393
translateX = -100 + offsetPercentage
0 commit comments