react-id-swiper
react-id-swiper copied to clipboard
Slides in swiper are not detecting link clicks when using events.
So i can't click on links if i use an event like touchEnd, it's only when swiper is rerendered that i'm able to click the link inside of the slide.
Video showing the issue: Youtube Video
const params = {
spaceBetween: 0,
grabCursor: true,
loop: true,
preventClicks: false,
preventClicksPropagation: false,
initialSlide: global.projectIndex,
on: {
touchEnd: (e) => {
if (global.showProjectSwiperTips === true) {
setGlobal({ ...global, showProjectSwiperTips: false });
}
},
},
};
I get a similar behavior. When clicking on div inside the swiper-slide, sometimes the event propagates and sometimes not.