Bloquee el zoom de iOS hasta que un usuario haga 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’; …

Leer más