-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Tip
Help move this idea forward
- Use the 👍 reaction to show support for this feature.
- Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
- Subscribe to receive notifications about status changes and new comments.
Not quite sure if this should be a feature request or a bug report.
Firefox on iOS does not handle text fields and viewport scaling correctly. This makes for a really awkward and frustrating experience when editing input fields where the viewport zoom keeps jumping.
On iOS, Firefox is not given the value maximum-scale=1.0 to the "viewport" meta tag. Adding this would fix it.
Describe the solution you'd like
Add a new UA string constant to the Request.php to capture iOS Firefox or modify the existing Mobile Safari regex to include Firefox.
| public const USER_AGENT_SAFARI_MOBILE = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/[0-9.]+ (Mobile\/[0-9.A-Z]+) Safari\/[0-9.A-Z]+$/'; |
Describe alternatives you've considered
Not sure there is one.
Additional context
Browsers on iOS all are (currently) forced to use Apple's webkit rendering engine so they should all be treated the same.
The comment detailing the reasoning for the maximum-scale toggle states that adding it breaks Chrome and others by disabling user zoom; however, in my testing this does not affect Firefox. This is because on iOS everything is still Safari under the hood.