Commit 98c3817
authored
prevent mobile viewport auto-zoom on input focus (#5152)
Mobile WebKit/Blink engines (such as Safari and Chrome on iOS) automatically
zoom in the entire page viewport when a text or numeric input is focused if
the computed font-size is strictly less than 16px. This page-level zoom remains
locked even after the input is blurred, disrupting the layout and forcing
users to manually pinch-to-zoom out to return to normal dimensions.
This change fixes the issue globally for the documentation examples and
provides educational guidelines for developers copying the patterns:
1. Systemic Styles Guard: Added a scoped style rule in examples.css setting
'font-size: 16px' for all inputs and selects inside floating '.controls'
containers. This covers active widgets (e.g. Model Transformations,
Post-Processing, variant swapping) across almost all example pages
without impacting other standard utility forms.
2. Developer Guidance Tip: Appended an educational "Mobile WebUX Tip" callout
under the Model Transformations demo text block inside scenegraph/index.html,
explaining the 16px browser threshold quirk to developers who copy-paste
the custom markup blocks for their own standalone applications.
Verified layout presentation and viewport locking (locked at stable 1.0x scale)
under small-screen interaction models. Playwright test suite passes cleanly.1 parent 56d00bc commit 98c3817
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1052 | 1058 | | |
0 commit comments