generated from nhcarrigan/template
80a59a0b22
- Move isRestoringScroll = true before await tick() so scroll events fired during the DOM transition cannot incorrectly set shouldAutoScroll to false, breaking autoscroll for all tabs except the first - Guard the windowStart reactive block with isSwitchingConversation so stale lines from the previous conversation cannot override the correct windowStart after a tab switch - Fix lazy load threshold to trigger relative to the visible window top (windowStart * AVG_LINE_HEIGHT + 300) rather than the absolute scroll container top, so older messages load without scrolling through the spacer