diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 18:01:44 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 18:01:44 +0100 |
| commit | 60b07b483f49adfee51480b029f23f7c4913886f (patch) | |
| tree | 087570295f00a2787c06bedae97574b6a24c254d /wipfel-droid/.gradle/8.11.1/checksums | |
| parent | d7142ca2c39c3ca2c58240558abcac9a0e8f8e09 (diff) | |
web: fix pinch zoom — stale use_state snapshots clobbered each other
A UseStateHandle cloned into a callback derefs to its render-time
snapshot (documented Yew behaviour). Pinch emitted zoom and pan as two
separate read-modify-writes per event: both read the same stale
snapshot, so the pan write reverted the zoom write on every event and
the scale never moved. Wheel zoom survived because it emits alone with
a render between events.
Fix: keep the authoritative ViewState in a use_mut_ref mirror with an
apply_view helper (read live, mutate, write mirror + use_state), and
fold pinch zoom+pan into a single combined update. Removes all the
pinch diagnostic probes (debug callback, event counters, build stamp).
Diffstat (limited to 'wipfel-droid/.gradle/8.11.1/checksums')
0 files changed, 0 insertions, 0 deletions
