Have you ever repeatedly tapped on a button only for the page to zoom in unexpectedly? Rewind and fast-forward buttons in an audio player for example. This unwanted side effect can be removed with
touch-action
:.button { touch-action: manipulation;}
The
manipulation
value disables gestures like ‘double-tap to zoom’. Other gestures like ‘panning’ and ‘pinch to zoom’ are unaffected. An extra benefit is that the browser no longer needs to delay theclick
event waiting for a second tap.
https://dbushell.com/2024/03/10/css-button-styles-you-might-not-know/