From 8e1c814165331910356c26aea476e8910081fa57 Mon Sep 17 00:00:00 2001 From: yarema184 Date: Tue, 19 Sep 2023 09:59:48 +0300 Subject: [PATCH] fix rtl autoslide --- workspaces/core/src/carousel/Carousel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/core/src/carousel/Carousel.tsx b/workspaces/core/src/carousel/Carousel.tsx index ec825e4c23..904e645a2a 100644 --- a/workspaces/core/src/carousel/Carousel.tsx +++ b/workspaces/core/src/carousel/Carousel.tsx @@ -42,7 +42,7 @@ const CarouselRoot = ({ if (canScrollLeft) { scrollLeftToStep(); } else { - scrollToIndex(0); + scrollToIndex(itemsCount - 1); } } else { if (canScrollRight) {