summaryrefslogtreecommitdiff
path: root/crates/gipfel-desktop/icons/ios/AppIcon-60x60@3x.png
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 18:01:44 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 18:01:44 +0100
commit60b07b483f49adfee51480b029f23f7c4913886f (patch)
tree087570295f00a2787c06bedae97574b6a24c254d /crates/gipfel-desktop/icons/ios/AppIcon-60x60@3x.png
parentd7142ca2c39c3ca2c58240558abcac9a0e8f8e09 (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 'crates/gipfel-desktop/icons/ios/AppIcon-60x60@3x.png')
0 files changed, 0 insertions, 0 deletions