Skip to content

Instantly share code, notes, and snippets.

@SuperFuentes
Created October 23, 2014 20:04
Show Gist options
  • Save SuperFuentes/1e34367bf09e80efc546 to your computer and use it in GitHub Desktop.
Save SuperFuentes/1e34367bf09e80efc546 to your computer and use it in GitHub Desktop.
To add a click event, we added the following to the line after evt.target.removeEventListener("touchend", self.handleTouchEnd); (but, before the self.fired=false;)
if (!self.fired) {
if(jQuery(this).parents(".views_slideshow_cycle_slide").length > 0) {
var link = jQuery(this).parents(".views_slideshow_cycle_slide").find("a").attr("href");
if (link.length > 0) document.location.href = link;
}
}
I am trying to stop the script from changing slides when swippping up and down, does anyone have the answer for that?
Thanks,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment