mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 19:20:16 +00:00
86b20d362f
_scheduleRender() now uses setTimeout(→rAF) when within the 66ms throttle window, meaning _pendingRafHandle can hold a setTimeout ID (not a rAF ID). All 4 cleanup sites only called cancelAnimationFrame(), which is a no-op for timeout handles, leaving stale callbacks that could fire after stream end. Fix: call both clearTimeout() and cancelAnimationFrame() at each site. (clearTimeout is a no-op when called with a rAF handle, and vice versa.) Co-authored-by: nesquena-hermes <nesquena-hermes@users.noreply.github.com>