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

window.visualViewport.height is not correct on Safari IOS15 #78

Closed
chongruei opened this issue Oct 14, 2021 · 4 comments
Closed

window.visualViewport.height is not correct on Safari IOS15 #78

chongruei opened this issue Oct 14, 2021 · 4 comments

Comments

@chongruei
Copy link

Since the IOS15 release, the address bar is a move to the bottom position. And I tested with some scenarios like the keyboard is visible. Then the window.visualViewport.height is not pretty accurate.

@205g0
Copy link

205g0 commented Oct 28, 2021

in my case window.visualViewport.height on iOS doesn't change at all, e.g., when the keyboard opens

@karlcow
Copy link

karlcow commented Oct 28, 2021

Is it related to https://bugs.webkit.org/show_bug.cgi?id=229876

@bokand
Copy link
Collaborator

bokand commented Feb 23, 2022

This is a WebKit/Safari issue - the VisualViewport spec doesn't dictate which UI should cause a resize in the visual viewport (vs. overlaying it silently) so this is UA dependent.

@whatwg6
Copy link

whatwg6 commented Mar 20, 2022

 window.visualViewport.addEventListener("resize", resizeHandler)

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

5 participants