Prevent iOS from auto zooming on input focus

Closes #13602
This commit is contained in:
José Antonio Díaz Miralles
2024-12-15 16:42:35 +01:00
parent 294f2d1474
commit 94048faeb4
+5
View File
@@ -110,6 +110,11 @@ this repository contains the full copyright notices and license terms. -->
});
});
}
if (navigator.userAgent.indexOf('iPhone') > -1) {
let viewport = document.querySelector('[name=viewport]');
viewport.setAttribute('content',
[viewport.getAttribute('content'), 'maximum-scale=1'].join(', '));
}
</script>
</body>
</html>