Bloqueie o zoom do iOS até que um usuário faça zoom manualmente.
// lock the zoom unless the user is manually zoomingvar viewportmeta = document.querySelector(‘meta[name=”viewport”]’);if (viewportmeta) { viewportmeta.content = ‘width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0’; document.body.addEventListener(‘gesturestart’, function () { viewportmeta.content = ‘width=device-width, minimum-scale=0.25, maximum-scale=1.6’; …
Continuar lendo