From aec36a8d6087266a2c9c7569314e2306f2dcf298 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 16:32:12 +0100 Subject: web: mobile fixes — pinch zoom, dynamic viewport height, wider accept MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- dist/wipfel/style.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dist/wipfel/style.css') diff --git a/dist/wipfel/style.css b/dist/wipfel/style.css index d706a8d..a0ffc4d 100644 --- a/dist/wipfel/style.css +++ b/dist/wipfel/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; } -- cgit v1.2.3