Primitives / foldkit-primitives/dom
keyboardInset
function · packages/primitives/src/dom/keyboard-inset.ts:15
function keyboardInset(view: {
readonly innerHeight: number
readonly visualViewport: {
readonly height: number
readonly offsetTop: number
} | null
}): numberThe part of the layout viewport's height below the visual viewport: what the on-screen keyboard covers. Rounded down, since a fraction of a pixel of zoom is no keyboard.