Skip to content

Commit

Permalink
fix rtl autoslide
Browse files Browse the repository at this point in the history
  • Loading branch information
yarema184 committed Sep 19, 2023
1 parent 1470c85 commit 8e1c814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/core/src/carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const CarouselRoot = ({
if (canScrollLeft) {
scrollLeftToStep();
} else {
scrollToIndex(0);
scrollToIndex(itemsCount - 1);
}
} else {
if (canScrollRight) {
Expand Down

0 comments on commit 8e1c814

Please sign in to comment.