Skip to content

[css-om-view] Should overscroll ("rubber-banding") be observable? #4011

Open
@smfr

Description

@smfr

https://www.w3.org/TR/cssom-view-1/#scrolling-events doesn't say anything about whether a UA should fire scroll events when the user triggers overscroll behavior (https://drafts.csswg.org/css-overscroll/) and the visual scroll offset becomes negative.

WebKit has traditionally allowed negative scrollTop/scrollLeft to be observable by web content, but many pages are obviously not prepared to handle negative values (e.g. CodeMirror's gutter contents jiggle around, Quip does weird things etc). And the UI behavior that triggers negative values is an Apple-specific one; other platforms like Android don't move the content to negative offsets, but rather show an overlapping UI affordance.

Yet some authors want to tie into overscroll behavior to implement behaviors like pull-to-refresh.

So perhaps we need a new event for overscroll interactions ("overscroll"?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions