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
It's not possible to drag elements without Lity being launched #290
Comments
After giving it a lot of thought and trying many things, I found a solution using the Flickity events (which is the library I used for the slider).
Since I can't use the typical This library is called Flickity, and I realized it has its own event called So, I attach to the
Since everything is in a foreach loop that can create many sliders, I ensure that Lity is only launched on sliders that have the I hope this helps people who are using Lity and Flickity together and have encountered the same issue. But anyway, I believe it would be good for Lity to have this implemented already, so we wouldn't have to depend on other libraries to do it. |
I have a draggable slider of images. These images have Lity implemented. I'm unable to drag the images to navigate through the slides because Lity triggers every time I release the click after draggin images. I would like to know if there is a way to avoid that.
I need Lity to trigger only when I click the image, but not when I drag it.
I also posted the question at this link (StackOverflow) with a bit more context.
Thank you!
The text was updated successfully, but these errors were encountered: