You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d8296b
Browse filesBrowse the repository at this point in the historyBrowse files
Fix stale resize run's finally block corrupting concurrent measurement styles
When two resize() calls run concurrently, the stale run's finally block
would restore DOM styles that the active run still needs for measurement.
Additionally, the active run would snapshot measurement styles (set by
the earlier run) as 'previous', permanently leaving the page with
overflow: visible.
Fix: Store original styles in a shared ref that is only captured when no
measurement is already in progress. The finally block only restores
styles when the run is still the latest one — stale runs skip cleanup
entirely, leaving the DOM for the active run to handle.
0 commit comments