jquery - Hide div when mobile pinch zoom level > 100% -
i hide div when mobile zoom level (as initiated pinch zoom gesture on mobile browser) larger 100%.
e.g. when user zooms in on webpage, div disappears (because div fixed , don't want visible when zoomed in, otherwise it's enlarged self takes on entire viewport.
i using jquery , jquery mobile , can use hammer.js if helps?
cheers new zealand! phill
i've tried far
hammer(document).on("pinch", function (event) { if (event.gesture.scale > 1) { $('#test').text(event.gesture.scale); $('.sb-slide').fadeout(); } else { $('.sb-slide').fadein(); } });
Comments
Post a Comment