Re: [csswg-drafts] [cssom-view] Clarify about scroll completion (#11973)

> But touchpads on MacOS basically send "momentum" events, thus even after the user has lifted their fingers from the touchpad, momentum events are sent to applications.

Isn’t that covered by the ”the scroll position has no more pending updates or translations” part? The momentum events generate pending updates, so as long that happens scroll has not completed.

For clarity, this is how I read the definition:

```
scrollCompleted = (scroll position has no more pending updates or translations) && (user has completed their gesture)
```

So when a user swipes down the trackpad, causing a scroll:

1. Upon lifting their fingers from the trackpad, the gesture has completed
2. After the last wheel event comes in, there are no more pending updates/translations to the scrollposition

Only when both 1. and 2. done, scroll is considered to be completed, and `scrollend` fires.

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


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

Received on Friday, 21 March 2025 10:31:11 UTC