mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-14 04:02:26 +00:00
chore: uptick
This commit is contained in:
parent
7945fcef21
commit
d81b1cd86c
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export function getViewportSnapshot(s?: ScrollBoxHandle | null): ViewportSnapsho
|
|||
}
|
||||
|
||||
export function viewportSnapshotKey(v: ViewportSnapshot) {
|
||||
return `${v.atBottom ? 1 : 0}:${v.top}:${v.viewportHeight}:${v.scrollHeight}:${v.pending}`
|
||||
return `${v.atBottom ? 1 : 0}:${Math.ceil(v.top / 8) * 8}:${v.viewportHeight}:${Math.ceil(v.scrollHeight / 8) * 8}:${v.pending}`
|
||||
}
|
||||
|
||||
export function useViewportSnapshot(scrollRef: RefObject<ScrollBoxHandle | null>): ViewportSnapshot {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue