I have a lightbox function in a new site that works just fine on my desktop but on an ipad the clicks have a serious lag in interation. I added "fastclick" to the project but doesnt seem to help a lot. Here is what I have if anyone sees something wrong with the code
js
$('a[data-ocular]').click(function(event) {
event.preventDefault();
//some more code
}
$('#galleryPrev').off().on( "click", function() {
currentImageIndex = (currentImageIndex) - 1;
updateImage(currentImageIndex);
});
fastclick init at before </body>
on the page
<script type="text/javascript">
$(function() {
FastClick.attach(document.body);
});
</script?>
` tag. Try posting the code in a JSFiddle. Can't help if I can't see all the code.
– Josh Beam Jun 08 '15 at 15:54