WarUI

Configurable overscan buffer

GRID-A06-F03P0baselinePlanned

Overscan controls how many extra rows and columns are rendered outside the viewport. A larger buffer reduces blank flashes during fast scrolling, at the cost of more DOM. The demo makes this trade-off visible instead of hiding it.

Planned. This page shows the specification from issue #183. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

100,000 rows by 100 columns, overscanRows 3, overscanColumns 1. A debug outline shades overscan rows and columns in a distinct color.

Expected behavior

Moving the sliders changes the shaded buffer region and the rendered node count immediately. In directional mode, the buffer is larger in the current scroll direction and rebalances when scrolling stops.

Planned API surface

overscanRowsoverscanColumnsoverscanMode

Acceptance criteria

  • With overscanRows=N, exactly N rows above and N rows below the viewport are rendered when not at a boundary (symmetric mode). (pending)
  • In directional mode, the total overscan equals the symmetric total, but is skewed toward the scroll direction. (pending)
  • Negative or non-integer values are clamped and rounded, and a dev-mode warning is logged. (pending)
  • Overscan never renders indices outside [0, rowCount-1]. (pending)