Implement Visual Viewport API
kripod opened this issue · 0 comments
kripod commented
Motivation
Sometimes, classic scrollbars and on-screen keyboards shall be excluded when calculating the dimensions of a document.
Details
- Visual Viewport API specification
- Add
useViewportScrollCoords
,useViewportSize
anduseViewportScale
hooks - Keep
useWindowScrollCoords
anduseWindowSize
hooks, optionally updating their docs to emphasize which elements are included in the results