Skip to content

fix: add pixel overscan - #2

Draft
ImLunaHey wants to merge 1 commit into
mainfrom
agent/avoid-scroll-gaps
Draft

fix: add pixel overscan#2
ImLunaHey wants to merge 1 commit into
mainfrom
agent/avoid-scroll-gaps

Conversation

@ImLunaHey

Copy link
Copy Markdown
Member

What changed

  • add an overscanPixels option alongside item-count overscan
  • combine pixel and item buffers using the existing prefix-size tree
  • keep the zero-pixel hot path free of extra tree searches
  • document the high-velocity scrolling use case

Why

Native composited scrolling can move farther than a small item-count buffer before a framework commits its next render. With variable-height rows, an item count also does not represent a predictable physical buffer.

Validation

  • full package check
  • 20 tests with 100% statement, branch, function, and line coverage
  • package audit passes
  • smoke benchmark retains roughly 2.25 million visible-range updates per second

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant