From 34377db6b5c8e563dca18f72cc8174a5df2dd92e Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 28 Oct 2026 20:18:01 +0100 Subject: web: fix redraw tick stalling in persistent resize closures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- dist/wipfel/wipfel_bg.wasm | Bin 523323 -> 524243 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'dist/wipfel/wipfel_bg.wasm') diff --git a/dist/wipfel/wipfel_bg.wasm b/dist/wipfel/wipfel_bg.wasm index aab2e64..e0ce1d7 100644 Binary files a/dist/wipfel/wipfel_bg.wasm and b/dist/wipfel/wipfel_bg.wasm differ -- cgit v1.2.3