From 94048faeb46f0fb6422d8822398df5548d8870d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20D=C3=ADaz=20Miralles?= Date: Sun, 15 Dec 2024 16:42:35 +0100 Subject: [PATCH] Prevent iOS from auto zooming on input focus Closes #13602 --- sao/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sao/index.html b/sao/index.html index 2b3dd99059..d9cd14362b 100644 --- a/sao/index.html +++ b/sao/index.html @@ -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(', ')); + }