malsup / cycle2

2nd gen cycling
899 stars 239 forks source link

Cycle2 jquery carousel inside slide doesn't register click event #820

Open marko-mlinarevic opened 6 years ago

marko-mlinarevic commented 6 years ago

I'm fixing legacy project and I have cycle2 jquery carousel plugin. On desktop, browser register the click event but when I'm on mobile it simply doesn't register it

HTML

<h1 class="sectionTitle hidden">SectionTitle</h1>
<div class="slider eventsSlider">
  <article class="slide">
    <div class="slideContent">
      <div class="date">
        <span class="year">Year</span>
        <span class="dayMonth">Date</span>
      </div>
      <div class="eventInfo">
        <h1 class="subTitle">Title</h1>
        <p>Place</p>
        <a href="google.com" target="_blank">link</a>
      </div>
    </div>
  </article>
</div>

JS

$(".eventsSlider").cycle({
  fx: "carousel",
  carouselVisible: 4,
  carouselFluid: true,
  slides: "> article",
  timeout: 0,
  prev: "#prev-evnt-slide",
  next: "#next-evnt-slide",
  manualSpeed: 500,
  allowWrap: false
});