react-id-swiper icon indicating copy to clipboard operation
react-id-swiper copied to clipboard

Slides in swiper are not detecting link clicks when using events.

Open HenrikDK2 opened this issue 5 years ago • 1 comments

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 });
        }
      },
    },
  };

HenrikDK2 avatar Jun 01 '20 20:06 HenrikDK2

I get a similar behavior. When clicking on div inside the swiper-slide, sometimes the event propagates and sometimes not.

logusgraphics avatar Jun 29 '20 12:06 logusgraphics