Re: [csswg-drafts] [cssom-view-1] Update spec text for visual viewport scroll and scrollend events (#8205)

> Great question. i initially thought first in first out, but upon more thought I think scroll completion to be better (first in last out). What were your thoughts?

I think I'd lean that way too (FILO) though I don't have a strong opinion at this point - I'm unsure of what the possibilities are in other browsers. The way scrollend is written we flush the `pending scrollend event target` list whenever a scroll ends (which is also when we push to the list). In Chrome, a user scroll gesture "latches" to a single target and (at least at the time) we couldn't animate multiple scrollers simultaneously. Given that, the only case I can think of where you would have multiple targets in this list would be viewport scrolling (visual and layout viewports). In that case it maybe doesn't matter too much, as long as we're consistent with other browsers?

OTOH, I'm less sure if other browsers have similar constraints. Maybe I'm missing some cases?

-- 
GitHub Notification of comment by bokand
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/8205#issuecomment-1343316286 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 8 December 2022 20:30:16 UTC