CSS touch-action Property

Beginner
4 examples
Updated: Nov 2026

Definition and Usage

The touch-action property decides which touch gestures the browser may handle on an element. Use it for custom pointer interactions and map-like surfaces.

CSS Syntax

syntax.css
.map {
  touch-action: none;
}

Property Values

ValueEffectTry it
autoBrowser handles default gesturesTry it
noneNo default touch behaviorsTry it
pan-x / pan-yAllow panning on one axisTry it
manipulationPan and pinch-zoom onlyTry it

CSS Examples

Basic use

example.css
.map {
  touch-action: none;
}
Try It Yourself

Browser Support

touch-action is a CSS property.

✓ CSS

touch-action

Check support for your audience.

92% Modern browsers
Google Chrome Recent
Full support
Mozilla Firefox Recent
Full support
Apple Safari Recent
Full support
Microsoft Edge Recent
Full support
touch-action Modern support

Bottom line: Prefer progressive enhancement when support varies.

Frequently Asked Questions

The touch-action property decides which touch gestures the browser may handle on an element. Use it for custom pointer interactions and map-like surfaces.
Use it with progressive enhancement and check current browsers for edge cases.
Read the definition, try the first example, then compare related properties.
Sometimes. Prefer modern properties when browser support meets your audience.
Open the Try it demos and change one value at a time.

Next: transform

Continue with will-change.

transform →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

4 people found this page helpful