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/src/app.rs | |
| 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/src/app.rs')
| -rw-r--r-- | crates/wipfel/src/app.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs index d2a66cb..cc9f558 100644 --- a/crates/wipfel/src/app.rs +++ b/crates/wipfel/src/app.rs @@ -870,7 +870,7 @@ pub fn app() -> Html { <input type="file" ref={file_ref} - accept="image/jpeg,image/png" + accept="image/*" class="hidden-file" onchange={on_file_change} /> |
