Open Great2BNate opened 6 years ago
function touchstart(event) { var touches = event.originalEvent.touches; if (touches && touches.length) { startX = touches[0].pageX; startY = touches[0].pageY; $this.bind('touchmove', touchmove); } event.preventDefault(); }
There is function touchstart() begins on line 38. At the end of this function is event.preventDefault(). I just removed this preventDefault and my links work.
Links inside the main section on iPad are not clickable without this function. . .
$(document).ready(function() { $("a").on("click touchend", function(e) { var el = $(this); var link = el.attr("href"); window.location = link; }); });