Created
October 23, 2014 20:04
-
-
Save SuperFuentes/1e34367bf09e80efc546 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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