Skip to content

Data Viewer: mouse-wheel scrolling over the table body gets stuck on Windows #18221

Open

Description

@kevinushey

Description

On Windows, after View(iris) (or any data frame), vertical scrolling with a mouse wheel gets "stuck" at various points in the dataset when the pointer is over the table body. Scrolling works normally when the pointer is over the row names (the pinned/frozen pane).

Cause

The data viewer grid is virtualized: as the user scrolls, the rendered row window is replaced and the top spacer row is resized. #gridViewport does not opt out of browser scroll anchoring, so Chromium adjusts scrollTop to compensate for the content shift above the anchor node, undoing the user's wheel scroll.

This is most visible on Windows because discrete mouse-wheel ticks are driven through Chromium's smooth-scroll animation, leaving a window between ticks where the spacer resize happens and anchoring snaps the position back. Scrolling over the row names works because the pinned pane mirrors its scroll position onto the viewport programmatically on every scroll event, overriding the anchoring adjustment.

The virtualized summary sidebar received the equivalent fix (overflow-anchor: none) in #17977, but the grid viewport and pinned pane did not.

Fix

Add overflow-anchor: none to #gridViewport and #pinnedPane in DataViewer.css.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions