From f8911f6fc80ad6edabae8e471c33d3efadf25d60 Mon Sep 17 00:00:00 2001 From: Georg Tomitsch Date: Sat, 16 May 2026 21:46:44 +0200 Subject: [PATCH] Keep live appends out of history reflow --- public/js/ui-display-handler-module.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/ui-display-handler-module.js b/public/js/ui-display-handler-module.js index f72ec51..ff623c8 100644 --- a/public/js/ui-display-handler-module.js +++ b/public/js/ui-display-handler-module.js @@ -1514,6 +1514,11 @@ class UIDisplayHandlerModule extends BaseModule { const bounds = await this.getWindowBoundsForTraversal(previousLine, targetLine, latest); 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 exactWindowAlreadyLoaded = bounds.start === this.historyWindowStartId && bounds.end === this.historyWindowEndId;