mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
chore: uptick
This commit is contained in:
parent
77cd5bf565
commit
4cbf54fb33
8 changed files with 282 additions and 239 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue