For those of you out there, struggling with the same issue, here is a plugin;
code
(function($){
$.fn.nodoubletapzoom = function(){
$(this).bind('touchend', function preventZoom(e){
var now = new Date().getTime();
var lastTouch = $(this).data('lastTouch') || now + 1;
var delta = now - lastTouch;
Code: Select all
if(delta<500 && delta>0){
e.preventDefault();
$(this).trigger('click').trigger('click');
}
$(this).data('lastTouch', now); });
};
})(jQuery);
/code
and simply invoke this on anyelement you need to prevent zoom on;
code
$('#MyElementId').nodoubletapzoom();
/code