From 953ab039acc0894e287304364920bc7cc4962cc0 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 17 Apr 2017 15:54:53 -0700 Subject: [PATCH] Disable auto-zoom on mobile form UIs Summary: Chrome and Safari both zoom in on form (input, select, textarea) when it thinks the text is too small (less than 16px... which is huge). This turns user-scalable off. The only drawback is double-tap to zoom will be disabled as well, but given we already responsively design, I don't think thats an issue. Test Plan: iOS simulator on secure and local test instances. Click on an input, no longer see UI zoom in. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17714 --- src/view/page/PhabricatorBarePageView.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/page/PhabricatorBarePageView.php b/src/view/page/PhabricatorBarePageView.php index ca9d432286..c9a3c5c5cd 100644 --- a/src/view/page/PhabricatorBarePageView.php +++ b/src/view/page/PhabricatorBarePageView.php @@ -72,7 +72,7 @@ class PhabricatorBarePageView extends AphrontPageView { 'name' => 'viewport', 'content' => 'width=device-width, '. 'initial-scale=1, '. - 'maximum-scale=1', + 'user-scalable=no', )); }