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

Interaction with window.scrollTo/scrollBy #12

Open
staktrace opened this issue Apr 20, 2016 · 1 comment
Open

Interaction with window.scrollTo/scrollBy #12

staktrace opened this issue Apr 20, 2016 · 1 comment

Comments

@staktrace
Copy link
Contributor

I think the interaction of the visual viewport with the window.scrollTo/scrollBy is also worth specifying as part of this proposal. The intuitive (to me, anyway) behaviour from the author's point of view would be that calling window.scrollTo also resets the visual viewport to the top-left of the layout viewport, and that calling window.scrollBy leaves the visual viewport as-is relative to the layout viewport.

@bokand
Copy link
Collaborator

bokand commented Jun 3, 2016

Agreed that this needs some thought but I'm not sure yet how these should work. My intuition is that if we add visualViewport.scrollTo/By then the old window versions should behave as if the visual viewport didn't exist. That's not the case for us today.

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

3 participants