[csswg-drafts] [cssom-view] Should scrollend fire when a scroll hits the end of a scroll container (#7927)

dlrobertson has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] Should scrollend fire when a scroll hits the end of a scroll container ==
[§ 3.1. Scrolling](https://drafts.csswg.org/cssom-view/#scrolling) states:

> Once the position has finished updating, emit the [scrollend](https://drafts.csswg.org/cssom-view/#eventdef-document-scrollend) event.

and [§ 13.2. Scrolling](https://drafts.csswg.org/cssom-view/#scrolling-events) states:

A scrollend event target is added to the Documents [pending-scrollend-event-targets](https://drafts.csswg.org/cssom-view/#document-pending-scrollend-event-targets) on [scroll completed](https://drafts.csswg.org/cssom-view/#scroll-completed), which is defined as:

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

It is not entirely clear to me what should occur when no more scrolling or translations can occur in the direction of the users scroll direction. For example, (based on my reading of the spec) a scroll container with `overscroll-behavior: none` and a pan gesture that hits the boundary should trigger a scrollend when the gesture completes (once the user lifts their fingers) and the boundary has been hit. I tested this on chromes implementation of scrollend with this example https://dlrobertson.com/examples/scrollend-event.html, and it appears that the scrollend is delayed. Do we include the momentum phase of a pan gesture in the definition of a "user gesture"? Also, should a scrollend be fired for a user scroll for which no scroll can occur?

Feedback on additional info that is nice to have when raising spec questions would be greatly appreciated 😄 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7927 using your GitHub account


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

Received on Thursday, 20 October 2022 14:52:51 UTC