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

[cssom-view] Add a none value to the ScrollBehavior #1608

Closed
jihyerish opened this issue Jul 17, 2017 · 1 comment
Closed

[cssom-view] Add a none value to the ScrollBehavior #1608

jihyerish opened this issue Jul 17, 2017 · 1 comment

Comments

@jihyerish
Copy link
Contributor

jihyerish commented Jul 17, 2017

In the CSSOM, there is a ScrollIntoViewOptions and it takes ScrollBehavior and ScrollLogicalPosition.

I think ScrollBehavior needs to have "none" to specify not to scroll an element.
The "none" value could help developer prevent unintentional scrolling.

In fact, there is a discussion whatwg/html#2787 about adding scrollOptions for Element.focus().
The suggested scrollOptions has "none" value for specifying not to scroll the element. Instead of defining new scrolling behavior, it seems reasonable to reference ScrollBehavior in here. So how about adding "none" value to it?

@jihyerish
Copy link
Contributor Author

In whatwg/html#2787, it was agreed not to add "none" to ScrollBehavior.
Instead of that, there is a suggestion about newly defining "FocusOptions" dictionary with 'preventScroll' boolean option.
So I think this issue would be closed.

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

No branches or pull requests

2 participants