chore: uptick

This commit is contained in:
Brooklyn Nicholson 2026-04-26 22:22:31 -05:00
parent 7945fcef21
commit d81b1cd86c

View file

@ -42,7 +42,7 @@ export function getViewportSnapshot(s?: ScrollBoxHandle | null): ViewportSnapsho
} }
export function viewportSnapshotKey(v: ViewportSnapshot) { 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 { export function useViewportSnapshot(scrollRef: RefObject<ScrollBoxHandle | null>): ViewportSnapshot {