Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

< a href links not working on iPad #337

Open
Great2BNate opened this issue Aug 23, 2018 · 1 comment
Open

< a href links not working on iPad #337

Great2BNate opened this issue Aug 23, 2018 · 1 comment

Comments

@Great2BNate
Copy link

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

@StR1nG7
Copy link

StR1nG7 commented Dec 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants