Stop the inline image toolbar re-rendering on every scroll frame

Performancekamo-internal
Ya
3 Septemba 2026, 04:34 UTC
Mwandishi
Kamo
Ahadi ya
79a0fcb

measure() runs on each scroll and resize event and built a fresh state object every time, so the toolbar re-rendered whether or not anything about the image had changed. The box already had an equality guard; the image state now has one too, which is what holds a scroll to a single render. Also drops the effect that cleared the selection when the composer was disabled. It never had anything to do: the overlay already renders nothing while disabled, and measure() releases a selection whose element has left the DOM, which is what a sent-and-reset draft does to it.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei