Skip to content

[P1] [bug] Scroll wheel hijacking — broken for fast wheels, breaks a11y #407

Closed

Description

@EVWorth

[P1] [bug] Scroll wheel hijacking on virtualized path multiplies scroll speed arbitrarily

Context

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 onWheel useEffect 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.

Needs human verify

Yes

Labels: audit, area/results, severity/p1, kind/bug

Activity

  1. added
    audit
    severity/p1
    kind/bug
    area/results
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/resultsauditkind/bugseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions