Skip to content
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

Add support for upcoming promise behavior #387

Open
stipsan opened this issue Aug 5, 2018 · 0 comments
Open

Add support for upcoming promise behavior #387

stipsan opened this issue Aug 5, 2018 · 0 comments

Comments

@stipsan
Copy link
Member

stipsan commented Aug 5, 2018

Smooth scrolling will return promises in the future: w3c/csswg-drafts#1562

Suggested implementation here is:
If the browser is returning a promise, pass it through and let the browser decide how it's resolved.
If the browser isn't returning a promise, but the behavior is set to "smooth", use Promise.reject as there is no way of knowing when scrolling is complete anyway so userland code needs to handle both cases.

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

No branches or pull requests

1 participant