diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 16:46:35 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 16:46:35 +0100 |
| commit | 344b13444fe8ee9825ed33f8676d6091c70a77cb (patch) | |
| tree | b666f7fcb0b2408dccd65c8f26ec979fa1889ca0 /crates/wipfel/src/app.rs | |
| parent | 8066a226f3ac6df3b5e591384a127ba8d81f2700 (diff) | |
web: pinch diagnostics in status line + resilient pointer table
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.
Diffstat (limited to 'crates/wipfel/src/app.rs')
| -rw-r--r-- | crates/wipfel/src/app.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
