touch-actionBaseline · Widely available
The touch-action CSS property sets whether an element on a touch screen can be panned or pinched to zoom.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 19, 2019. Widely available since Mar 19, 2022.
Browser support
DesktopChrome
1–35Not supported
36+Supportedsince Jul 16, 2014
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–51Not supported
52+Supportedsince Mar 7, 2017
Current: 157Safari
1–12.1Not supported
13+Supportedsince Sep 19, 2019
Current: 27MobileChrome Android
18–35Not supported
36+Supportedsince Jul 16, 2014
Current: 155Firefox Android
4–51Not supported
52+Supportedsince Mar 7, 2017
Current: 157Safari iOS
1–9Not supported
9.3+Supportedsince Mar 21, 2016
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: touch-action.
Feature detection
CSS · check before using
@supports (touch-action: initial) {
/* styles that rely on touch-action */
}
/* or in JavaScript */
if (CSS.supports("touch-action", "initial")) {
// use it
}Documentation (MDN)
Usage share
Sub-features
Support for each part of the feature (10). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| touch-action | 36 | 12 | 52 | 13 | 36 | 52 | 9.3 |
| touch-action.manipulation | 36 | 12 | 52 | 13 | 36 | 52 | 9.3 |
| touch-action.none | 36 | 12 | 52 | 13 | 36 | 52 | 13 |
| touch-action.pan-down | 55 | 79 | ✕ | ✕ | 55 | ✕ | ✕ |
| touch-action.pan-left | 55 | 79 | ✕ | ✕ | 55 | ✕ | ✕ |
| touch-action.pan-right | 55 | 79 | ✕ | ✕ | 55 | ✕ | ✕ |
| touch-action.pan-up | 55 | 79 | ✕ | ✕ | 55 | ✕ | ✕ |
| touch-action.pan-x | 36 | 12 | 52 | 13 | 36 | 52 | 13 |
| touch-action.pan-y | 36 | 12 | 52 | 13 | 36 | 52 | 13 |
| touch-action.pinch-zoom | 56 | 12 | 85 | 13 | 56 | 85 | 13 |