Summary: | visualViewport.height changes and resize events fired when viewport height is not changing | ||
---|---|---|---|
Product: | WebKit | Reporter: | John Crim <john.crim> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, wenson_hsieh, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 14 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 14 |
Description
John Crim
2021-06-05 17:08:59 PDT
It looks like the first codepen link doesn't last, so please use this link to view the bug instead (it's easier than messing with codepen, particularly on mobile devices): https://johncrim.github.io/bug-safari-vvp-scroll/ Source code is here: https://github.com/johncrim/bug-safari-vvp-scroll I created a video demonstrating this bug, as well: https://photos.app.goo.gl/oWSZJDwvG1yADqxr6 This issue still exists in Safari on iPadOS 16.6. Note also that when this bug is happening (scrolling up from bottom with on-screen keyboard active), not only does the `visualViewport.height` continue to grow, but `window.innerHeight` returns the same value as `visualViewport.height`. This is clearly wrong, because the on-screen keyboard is showing, so the visualViewport height is the height of the keyboard shorter than `window.innerHeight`. I can take another video of this behavior if it helps. When I stop dragging + scrolling up, the values return to expected values. |