g787543/infinite-react-carousel

Wrong swipe direction in navigation (RTL user)

galezra opened this issue · 0 comments

Hey, thanks for this project!

I'm working on a project that supports RTL.
When I swipe in RTL, The expected behavior of the dots goes wrong.
I tried to use the rtl prop setting to mirror the swiping effect like LTR user, but it's doesn't work

Good behavior (LTR): swipe from right to left => switch to the second dot and then to the third dot.
good

Bad behavior: (RTL): swipe from left to right => switch to the third dot instead of the second dot.
bad