liveBook · Manning

Pinch-to-zoom

As explained in Architecting Accessibility

Pinch-to-zoom is a multi-touch technique that magnifies a mobile device's viewport and its contents through spread and pinch gestures.

Pinch-to-zoom lets mobile users enlarge the viewport with a two-finger spread and shrink it with a pinch. The gesture scales the entire viewport, including text, images, video, and interface components. section 4.4

Allow pinch-to-zoom. The browser supports it by default, but viewport settings such as user-scalable=no or maximum-scale=1 can block users from enlarging content, creating barriers especially for people with low vision. Pinch-to-zoom does not replace the ability to resize text independently. section 4.4

 <meta name="viewport" content="width=device-width, initial-scale=1">

A viewport setting that leaves zoom enabled. section 4.4

 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
 <meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1">

Examples of viewport settings that restrict zoom and should be avoided. section 4.4

Users must also be able to enlarge text to 200% through browser or operating-system settings without losing content or functionality; layouts should adapt to avoid two-direction scrolling, except in specific cases such as data tables. section 4.4

How Architecting Accessibility covers it

How deep it goes
Defines the gestures and viewport effects, explains restrictive settings, and distinguishes zooming from independent text resizing.
Examples
Compares a zoom-enabled viewport tag with settings that disable or restrict zoom.
What you can do after
Evaluate viewport settings for restrictions that prevent users from zooming.
How it connects
Connects viewport scaling to text resizing, WCAG 2.2 Resize Text, and Reflow.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.