This page demonstrates a visualViewport + on-screen keyboard + scrolling bug that is present on iOS/iPadOS.
Source code:
https://github.com/johncrim/bug-safari-vvp-scroll/
View on github pages:
https://johncrim.github.io/bug-safari-vvp-scroll/
Webkit bug report:
https://bugs.webkit.org/show_bug.cgi?id=226689
window.innerHeight:
visualViewport (updated every 500ms):
visualViewport.height
value is increasing while dragging, even though the height of the viewport is the same size. visualViewport.height
changes to the correct value (matching the actual height of the layout viewport).Expected behavior: visualViewport.height
does not increase, and visualViewport.resize
events are not raised, when the actual viewport is not changing size.
(none so far)