From 09f66f4581c86c286c0a8879cb2f78671f395cab Mon Sep 17 00:00:00 2001 From: Suhan Moon Date: Tue, 25 Dec 2018 01:31:00 +0900 Subject: [PATCH] Loop Bug Fixed a bug when moving left or right when setting loop={true} --- src/carousel/Carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/carousel/Carousel.js b/src/carousel/Carousel.js index 754b52875..056b4f0ec 100644 --- a/src/carousel/Carousel.js +++ b/src/carousel/Carousel.js @@ -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); } }