You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2026-10-24 23:19:26 +03:00
When the new timeline's scroller shrinks (a banner appears, the composer grows, the window is resized), the browser keeps `scrollTop`, so a reader at the bottom was left with the newest messages below the fold. Rows whose height follows the window, such as collapsed code blocks, made window resizes lose the bottom even with a resize handler in the view, because TanStack compensated them before the handler ran. The fix is a new hunk in our @tanstack/virtual-core patch rather than code in TimelineView: an end-anchored list now keeps an end-pinned view pinned when its scroll element shrinks, the same way it already does when a row grows. It is proposed upstream to TanStack Virtual and can be dropped once released. The rest of the patch is unchanged.
8.2 KiB
8.2 KiB