- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 06 May 2026 15:30:38 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[cssom-view] Clarify number and order of `scroll` and `scrollend` events when a `scroll` event listener performs another scroll``, and agreed to the following: * `RESOLVED: snapshot the event queue and empty it before dispatching all the events` <details><summary>The full IRC log of that discussion</summary> <fantasai> scribe+<br> <emilio> flackr: this is about what events you should expect to see when you perform a scroll from a scroll event listener<br> <emilio> ... I think the expectation is that because scroll events are dispatched after the scroll finished you'll see the queued scrollend from the previous scroll<br> <emilio> q+<br> <astearns> ack emilio<br> <fantasai> emilio: I think that falls out of the current spec, but bit that is not specced is that you copy the queued list of scroll events before dispatching all of them<br> <fantasai> emilio: We have this scroll event queue<br> <fantasai> emilio: I think that's the behavior you want?<br> <fantasai> flackr: Yes, I think so<br> <fantasai> emilio: So that needs clarification<br> <fantasai> emilio: Otherwise conceptually you could end up with an almost synchronous scroll event<br> <fantasai> flackr: completely agree. Copy beforehand.<br> <fantasai> emilio: That matches rAF etc.<br> <fantasai> astearns: Does that fit the behavior you thought was correct smfr?<br> <fantasai> smfr: I think it does result in scroll/scrollEnd/scroll/scrollEnd pattern<br> <fantasai> smfr: Idk whether Safari behavior is better.<br> <fantasai> smfr: Would like to hear from authors whether having a scrollEnd in the middle is problematic<br> <emilio> flackr: keep in mind that new scroll would end up in the next update the rendering<br> <fantasai> smfr: So split into different frames... maybe that's ok<br> <ydaniv> I think it's ok<br> <fantasai> emilio: Proposal is to snapshot the event queue and empty it before dispatching all the events<br> <flackr> +1<br> <emilio> PROPOSED: snapshot the event queue and empty it before dispatching all the events<br> <emilio> RESOLVED: snapshot the event queue and empty it before dispatching all the events<br> <emilio> astearns: does this cover your second point of checking whether there's a pending scroll event?<br> <emilio> flackr: I think this covers it<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13772#issuecomment-4389622776 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 6 May 2026 15:30:39 UTC