glide icon indicating copy to clipboard operation
glide copied to clipboard

how to prevent click event on swiping

Open pablomaurer opened this issue 6 years ago • 4 comments

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?

pablomaurer avatar May 15 '18 07:05 pablomaurer

Well, no reply is always a good sign right >.<

janbiasi avatar Sep 24 '19 12:09 janbiasi

I'm looking for a solution to this too. Any progress?

ChipRyan avatar Nov 27 '20 07:11 ChipRyan

I need this too

cihangir-mercan avatar Jan 26 '21 09:01 cihangir-mercan

@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"

funkysoul avatar Aug 06 '21 10:08 funkysoul