chore: uptick

This commit is contained in:
Brooklyn Nicholson 2026-04-14 19:38:04 -05:00
parent 77cd5bf565
commit 4cbf54fb33
8 changed files with 282 additions and 239 deletions

View file

@ -30,15 +30,21 @@ function isXtermJsHost(): boolean {
// shift layout → narrow damage bounds → O(changed cells) diff instead of
// O(rows×cols).
let layoutShifted = false
let absoluteOverlayMoved = false
export function resetLayoutShifted(): void {
layoutShifted = false
absoluteOverlayMoved = false
}
export function didLayoutShift(): boolean {
return layoutShifted
}
export function didAbsoluteOverlayMove(): boolean {
return absoluteOverlayMoved
}
// DECSTBM scroll optimization hint. When a ScrollBox's scrollTop changes
// between frames (and nothing else moved), log-update.ts can emit a
// hardware scroll (DECSTBM + SU/SD) instead of rewriting the whole
@ -496,6 +502,7 @@ function renderNodeToOutput(
if (positionChanged) {
layoutShifted = true
absoluteOverlayMoved ||= node.style.position === 'absolute'
}
if (cached && (node.dirty || positionChanged)) {