Skip to content

[cssom-view] Clarify about scroll completion #11973

Open
@hiikezoe

Description

@hiikezoe

Scroll completion is defined in the CSSOM View spec;

Scroll is completed when the scroll position has no more pending updates or translations and the user has completed their gesture.

But touchpads on MacOS basically send "momentum" events, thus even after the user has lifted their fingers from the touchpad, momentum events are sent to applications.

There's an interesting case we got recently related to this definition, here is the case.

On Chrome, if you try to scroll on the "iframe Scroll Reporter" strongly, you will see a bunch of "type=wheel, button=0, buttons=0 ..." messages even after the scroll position has reached to the bottom edge, then finally you will see a "type=scrollend, target=html" message.

So apparently Chrome considers "momentum events" are parts of a user gesture, but in my naive understanding, "when the user lifted their finger" is corresponding to the "the user has completed their gesture".

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