Re: [csswg-drafts] [css-overscroll-scrollend-events] Content has no way of understanding whether it is being overscrolled or whether scroll has ended (#3801)

what @smfr described in terms of the sequence is what we intended. Note that I already sent a [PL](https://github.com/w3c/csswg-drafts/pull/4537) for CSSOM View to spec this in place instead of the WICG spec @SamFort-MSFT referenced (i.e. [this one](https://wicg.github.io/overscroll-scrollend-events/#the-overscroll-and-scrollend-events)). In terms of the wording to make sure we capture this behavior feel free to checkout that pull request instead as that is very much inline with the scroll events dispatching as well.

> I think overscroll events need a scroll offset (maybe different from deltaX/deltaY) which is the overscroll distance.

While overscrolling the scroll offset is always at the extent of the scrollers (i.e. 0 or max offset) in the direction of scrolling and can always be reached with getting the scrollLeft/Top from the scrollers. 

> scrollend should have properties for the final scroll position.
I don't mind this at all. But you should note that `scroll` event doesn't have that either. I believe scrollend and scroll kind of fall into the same bucket. Having said that I don't mind at all adding the offset to both of them but these can be accessed by scrollLeft/Top of the scroller at any time.

> Overall this looks good to me. My only question isn't technical but around who the customers are for this and if any web developers have specifically been asking for this or a way to solve this problem. Do you have any data around that (Twitter polls or comments or issues filed)?

Regarding the current issues there is already a developer commenting in the original [discourse thread](https://discourse.wicg.io/t/proposal-new-events-for-overscroll-and-scrollend/3481/19). We also have some internal customer which hit this problem when the pages have ads (which might be cross origin and hence the outer page gets scrolled without knowing when the scroll actually finished or overscrolled.


-- 
GitHub Notification of comment by NavidZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3801#issuecomment-574237513 using your GitHub account

Received on Tuesday, 14 January 2020 15:45:08 UTC