Keep live appends out of history reflow
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user