Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite slider has to wait on item to be cloned #8

Open
koenz opened this issue Jan 22, 2019 · 1 comment
Open

Infinite slider has to wait on item to be cloned #8

koenz opened this issue Jan 22, 2019 · 1 comment

Comments

@koenz
Copy link

koenz commented Jan 22, 2019

When you use the infinite slider option on mobile and swipe to the last slide. I get sort of stuck at the last slide when I keep on sliding. It's because the transition end event is not triggered while i'm swiping. My suggestion would be to add the following to the startDrag() method.

The slider will be a bit limited in the swiping but it will feel more controlled and smooth.

startDrag(e, currentTarget) {
   if(this.$el.hasClass(this.options.classes.sliding)){
      return;
   }
   ...
}
@Sebastian-Fitzner
Copy link
Member

I make it optional ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants