lyfeyaj / swipe

Swipe is the most accurate touch slider. Support both React and Angular.

Home Page:https://swipe.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slide function directions

mathmagson opened this issue · comments

I'm building this "carousel" service's list.

I've added the dots at the bottom so the user can select what "slide" he wants to see.

It happens that I noticed a strange behavior, when I click on the dot and click on another distant, instead of going forward it goes backwards.

For example, I'm on the position 6 and then I click on the position 9, instead of going forward it goes backwards. And then, when I'm on the position 9 and click on the position 6, it move forward instead of going backwards.

This doesn't happen all the time, it's just some cases, I didn't find a pattern.

When I disable the "continuous" option, it seems to work fine.

The problem might be on "if (options.continuous)" on function slide()

I'll investigate more once I have time.

Screen Shot 2022-09-15 at 3 07 01 PM

Hello,
Maybe give it dir="rtl"