Skip to content

Commit

Permalink
Merge pull request #443 from creamcookie/master
Browse files Browse the repository at this point in the history
Loop Bug
  • Loading branch information
Benoît Delmaire authored May 21, 2019
2 parents 7bba5ac + 09f66f4 commit 853bb8d
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 @@ -258,7 +258,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);
}

if (nextProps.onScroll !== this.props.onScroll) {
Expand Down

0 comments on commit 853bb8d

Please sign in to comment.