You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1] [bug] Scroll wheel hijacking — broken for fast wheels, breaks a11y #407
ResultsGrid.tsx:443-454 adds a non-passive wheel event listener on the scroll container with a SCROLL_BOOST = Math.min(totalRows / 100, 100) factor.
Problem
Per docs/audits/results.md F14.
A single wheel notch (~100 deltaY) on a 10K-row result scrolls 100×100 = 10,000px = 312 rows. Trackpad pixel-deltas (1-10/frame) feel sluggish. The {passive: false} opt-in works but the boost is wrong (not derived from e.deltaMode). React StrictMode warns on non-passive wheel listeners. Native scroll would have worked fine with the virtualizer.
Files
src/components/grid/ResultsGrid.tsx:443-454
Repro (if applicable)
Static analysis only.
Expected
Remove the wheel handler entirely. The virtualizer's overscan of 5 is sufficient. If 5000 rows lag, increase overscan to 10-15.
Proposed fix
Scope S. Delete the onWheeluseEffect and the listener.
Acceptance
Scrolling a 50K-row result with trackpad works at native speed; PageDown moves to next virtual page; React wheel-handler warning is gone.
Activity