Skip to content

Commit

Permalink
Loop Bug
Browse files Browse the repository at this point in the history
Fixed a bug when moving left or right when setting loop={true}
  • Loading branch information
suhanmoon authored Dec 24, 2018
1 parent 85980e5 commit 09f66f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default class Carousel extends Component {
} else if (nextFirstItem !== this._previousFirstItem && nextFirstItem !== this._activeItem) {
this._activeItem = nextFirstItem;
this._previousFirstItem = nextFirstItem;
this._snapToItem(nextFirstItem, true, true, false, false);
this._snapToItem(nextFirstItem, false, true, false, false);
}
}

Expand Down

0 comments on commit 09f66f4

Please sign in to comment.