interface VisualViewport {
    height: number;
    offsetLeft: number;
    offsetTop: number;
    onresize: ((this, ev) => any);
    onscroll: ((this, ev) => any);
    pageLeft: number;
    pageTop: number;
    scale: number;
    width: number;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    dispatchEvent(event): boolean;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Hierarchy

  • EventTarget
    • VisualViewport

Properties

height: number
offsetLeft: number
offsetTop: number
onresize: ((this, ev) => any)

Type declaration

onscroll: ((this, ev) => any)

Type declaration

pageLeft: number
pageTop: number
scale: number
width: number

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc