Skip to content

Implement scrolling events #31665

@gterzian

Description

@gterzian

Spec: https://drafts.csswg.org/cssom-view/#scrolling-events

In particular, run the scroll steps should integrate with a fixed HTML event-loop as in #31242 (see step 8 of https://html.spec.whatwg.org/multipage/#update-the-rendering).

Although we have scrolling code in script, I couldn't find any firing of the scroll and scrollend events as per the spec. Something new in the spec?

Also, note that we are currently batching scroll events in the compositor at

// Batch up all scroll events into one, or else we'll do way too much painting.

But a fixed HTML event-loop, and implementation of run the scroll steps, could have a similar batching effect(but be more spec compliant): we would fire events for all relevant elements and docs, but reflow only once(see step 20 of https://html.spec.whatwg.org/multipage/#update-the-rendering).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions