glide
glide copied to clipboard
how to prevent click event on swiping
My slides containes a list with click handlers to open a detail-modal. Now when swiping it run's those click events and opens the modal. Instead I would like to find a way to prevent the click Events during swiping.
In the Swiper of Idangero there is the default option:
-
preventClicks | boolean | true | Set to true to prevent accidental unwanted clicks on links during swiping
-
preventClicksPropagation | boolean | true | Set to true to stop clicks event propagation on links during swiping
http://idangero.us/swiper/api/
any idea how to prevent this in glidejs?
Well, no reply is always a good sign right >.<
I'm looking for a solution to this too. Any progress?
I need this too
@pablomaurer did you try to listen to the run.after event instead of swipe.after?
In my case I experienced the same issue, I have a method that is being called up "after" a swipe or drag has taken place. I was having the same side effects until I switched to "run.after"