Smooth versus instant scrolling and reduced motion
Programmatic scrolls support behavior 'instant' or 'smooth', with a configurable duration and easing for long jumps. The grid honors prefers-reduced-motion by default. For very long distances, smooth mode skips ahead so it never animates through millions of rows.
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
1,000,000 rows; jump buttons to rows 100, 10,000 and 900,000; behavior smooth.
Expected behavior
Short jumps animate across all rows. Long jumps animate only the final screen-distance segment. Reduced motion forces instant. Cancel stops at the current position and rejects the pending promise with a cancel reason.
Planned API surface
scrollBehaviorsmoothScrollDurationsmoothScrollEasingrespectReducedMotioncancelScroll()Acceptance criteria
- With reduced motion emulated and respectReducedMotion=true, all programmatic scrolls are instant. (pending)
- Smooth scroll renders intermediate rows only within the final skip-ahead window, which is documented as a multiple of the viewport. (pending)
- User wheel or touch input during a smooth scroll cancels it. (pending)
- A new scroll request supersedes an in-flight one; the earlier promise rejects with 'superseded'. (pending)