#217·glide

how to prevent click event on swiping

Author: pablomaurerCreated May 15, 2018Updated Mar 12, 2025

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?