From d9966c96266b976728cd086ad6ec03a38140836a Mon Sep 17 00:00:00 2001 From: "Leonardo E. Dominguez" Date: Mon, 18 May 2020 20:40:26 -0400 Subject: [PATCH] fix: snapping to item with index 0 not working --- 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 05042a404..19a6c4003 100644 --- a/src/carousel/Carousel.js +++ b/src/carousel/Carousel.js @@ -870,7 +870,7 @@ export default class Carousel extends Component { const offset = this._getItemScrollOffset(index); - if (!offset) { + if (offset === undefined) { return; }