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

Scroll into view: scroll position end vs. center #1680

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

Conversation

christian-bromann
Copy link
Member

@christian-bromann christian-bromann commented Aug 25, 2022

The spec currently says that before interacting with an element, it needs to be scrolled into view:

To scroll into view an element perform the following steps only if the element is not already in view:

Let options be the following ScrollIntoViewOptions:

Logical scroll position "block"
"end"
Logical scroll position "inline"
"nearest"

I would like to propose to change the position block from end to center given that many applications have fixed positioned elements at the bottom the screen, e.g.

I'ld argue scrolling the element into the center of the viewpoint has higher chances that there are less elements that could be blocking the interaction causing element click intercepted errors.


Preview | Diff

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.

1 participant