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

Prevent touch in a certain direction for the first and last slides #722

Open
Eugeno opened this issue Mar 13, 2018 · 1 comment
Open

Prevent touch in a certain direction for the first and last slides #722

Eugeno opened this issue Mar 13, 2018 · 1 comment

Comments

@Eugeno
Copy link

Eugeno commented Mar 13, 2018

Can I prevent drag slides, when touch last slide and try to move it to the right, or when touch first slide and try to move it to the left? In other words, stick slides to the edges.

@nstanard
Copy link
Collaborator

I haven't tried to do this so I don't currently have an answer for you. Most likely doing this without changing the Lory code would require preventing the sliding events if on the first or last slide. I imagine this would only be desired if the slider is NOT infinite. If you want to try to accomplish this and link to an example/demo I can assist you in trying to accomplish this without a Lory code change. I imagine this could be added to the core functionality though. Might even be a good reason for you to open a PR with the change. ;) ;) ;)

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

No branches or pull requests

2 participants