VisualViewport
interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(
type: K,
listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;removeEventListener<K extends keyof VisualViewportEventMap>(
type: K,
listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var VisualViewport: {
prototype: VisualViewport;
new (): VisualViewport;
};§Extends
§Properties
§
onresize: ((this: VisualViewport, ev: Event) => any) | null
[src]§
onscroll: ((this: VisualViewport, ev: Event) => any) | null
[src]§Methods
§
addEventListener<K extends keyof VisualViewportEventMap>(
[src]type: K,
listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof VisualViewportEventMap>(
[src]type: K,
listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void