From 344b13444fe8ee9825ed33f8676d6091c70a77cb Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 27 Oct 2026 16:46:35 +0100 Subject: web: pinch diagnostics in status line + resilient pointer table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Second data point needed for the mobile pinch issue: the status line now shows pointer activity (pointerdown id/pts, pointercancel id/pts, pinch distance) so it is visible on the phone whether the second pointer arrives at all or whether the browser cancels pointers when pinching. Also: only capture the primary pointer (capturing every finger confuses some mobile browsers), and pointercancel now removes just that pointer instead of clearing the table — a browser that 'cancels' finger one as finger two lands no longer makes pinch impossible to form. --- crates/wipfel/src/app.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/wipfel/src/app.rs') diff --git a/crates/wipfel/src/app.rs b/crates/wipfel/src/app.rs index cc9f558..c4a42df 100644 --- a/crates/wipfel/src/app.rs +++ b/crates/wipfel/src/app.rs @@ -769,6 +769,10 @@ pub fn app() -> Html { let hover = hover.clone(); Callback::from(move |_: ()| hover.set(None)) }, + debug: { + let status = status.clone(); + Callback::from(move |s: String| status.set(s)) + }, }; // Lens FOV visibility limit, port of the desktop bump(): the angle at -- cgit v1.2.3