chore: uptick
This commit is contained in:
parent
7945fcef21
commit
d81b1cd86c
@ -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…
Reference in New Issue
Block a user