Skip to content

Commit

Permalink
feat: support RTL mode
Browse files Browse the repository at this point in the history
  • Loading branch information
raxu committed Dec 27, 2023
1 parent d5f0b6b commit 7fa199d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/swiper/swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ export const Swiper = forwardRef<SwiperRef, SwiperProps>(
}

useImperativeHandle(ref, () => ({
swipeTo,
swipeTo: index => {
swipeTo(isRtl ? -index : index)
},
swipeNext,
swipePrev,
}))
Expand Down

0 comments on commit 7fa199d

Please sign in to comment.