Back to Content

VisualViewport: scale property

files/en-us/web/api/visualviewport/scale/index.md

latest364 B
Original Source

{{APIRef("CSSOM view API")}}

The scale read-only property of the {{domxref("VisualViewport")}} interface returns the pinch-zoom scaling factor applied to the visual viewport, or 0 if current document is not fully active, or 1 if there is no output device.

Value

A double.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}