Skip to content

[cssom-view-1] Scroll methods in Element and Window return Promises #12355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mustaqahmed
Copy link
Member

Switch the return type for the scroll methods from undefined to Promise<undefined> as per the discussion and resolution in #1562 (comment).

Fixed: #1562.

Switch the return type for the scroll methods from `undefined` to `Promise<undefined>` as per the discussion and resolution in w3c#1562 (comment).

Fixed: w3c#1562.
@mustaqahmed mustaqahmed requested review from emilio and vmpstr June 17, 2025 14:58
@flackr
Copy link
Contributor

flackr commented Jun 23, 2025

In the discussion we talked about the argument to the promise being an object which would tell the developer the result of the scroll, e.g. to know if it was cancelled / interrupted as was brought up a few times as a common thing to need to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cssom-view] Consider making scroll methods return promises
2 participants