diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 16:32:12 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 16:32:12 +0100 |
| commit | aec36a8d6087266a2c9c7569314e2306f2dcf298 (patch) | |
| tree | 12287d4df8fc39808505530e5aba9cb655854831 /crates/wipfel/www/style.css | |
| parent | dbc12469028bb7d927fcd8bc1be3bcbc1bf63365 (diff) | |
web: mobile fixes — pinch zoom, dynamic viewport height, wider accept
- two-finger pinch on the viewport canvas: pointer table tracks all
active pointers; pinch emits zoom anchored at the finger midpoint
plus pan by the midpoint delta; a second finger cancels an in-flight
pan/marker drag, the remaining finger resumes panning, and pinch
gestures never fire a click
- 100dvh (with 100vh fallback) for the app shell: on mobile browsers
100vh includes the area behind the dynamic URL bar, which pushed
the compass strip below the visible fold
- file input accepts image/* so Android pickers offer all photos and
transcode exotic formats (HEIC) to decodable ones
Diffstat (limited to 'crates/wipfel/www/style.css')
| -rw-r--r-- | crates/wipfel/www/style.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/wipfel/www/style.css b/crates/wipfel/www/style.css index d706a8d..a0ffc4d 100644 --- a/crates/wipfel/www/style.css +++ b/crates/wipfel/www/style.css @@ -10,6 +10,10 @@ body { .app { display: flex; height: 100vh; + /* dynamic viewport height: on mobile browsers 100vh includes the + area behind the collapsing URL bar, pushing the compass below the + fold; dvh tracks the actually visible area */ + height: 100dvh; background: #101014; color: #e8e8ea; } |
