Keep live appends out of history reflow

This commit is contained in:
2026-05-16 21:46:44 +02:00
parent e368d252ad
commit f8911f6fc8
+5
View File
@@ -1514,6 +1514,11 @@ class UIDisplayHandlerModule extends BaseModule {
const bounds = await this.getWindowBoundsForTraversal(previousLine, targetLine, latest); const bounds = await this.getWindowBoundsForTraversal(previousLine, targetLine, latest);
if (!bounds) return; if (!bounds) return;
if (options.mode === 'append-live' && this.getRenderedBlockForLine(targetLine)) {
this.activeCenterBlockId = bounds.targetBlockId;
this.updateStoryScrollbar();
return;
}
const currentWindowCoversBounds = bounds.start >= this.historyWindowStartId && bounds.end <= this.historyWindowEndId; const currentWindowCoversBounds = bounds.start >= this.historyWindowStartId && bounds.end <= this.historyWindowEndId;
const exactWindowAlreadyLoaded = bounds.start === this.historyWindowStartId && bounds.end === this.historyWindowEndId; const exactWindowAlreadyLoaded = bounds.start === this.historyWindowStartId && bounds.end === this.historyWindowEndId;