diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-28 20:18:01 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-28 20:18:01 +0100 |
| commit | 34377db6b5c8e563dca18f72cc8174a5df2dd92e (patch) | |
| tree | 429b4c68c33d861c313a39b400e230c63f427c3e /crates/gipfel-cli/examples/overlay.rs | |
| parent | 969297d6658bb801de13cba132af774197c62ca8 (diff) | |
web: fix redraw tick stalling in persistent resize closures
A UseStateHandle cloned into a long-lived closure derefs to its
render-time snapshot (same root cause as the pinch bug), so
tick.set(*tick + 1) wrote the same value on every resize after the
first: no state change, no redraw, stale stretched canvas backing
store — the distortion thought fixed by d465654 returned on the second
resize (the window-resize listener, created once at startup, never
worked at all). Yew 0.21 has no functional-update setter, so the tick
now has a use_mut_ref mirror as the live counter.
Diffstat (limited to 'crates/gipfel-cli/examples/overlay.rs')
0 files changed, 0 insertions, 0 deletions
