carlos-sanchez
2/17/2016 - 4:27 PM

The touch-action CSS property specifies whether, and in what ways, a given region can be manipulated by the user (for instance, by panning o

The touch-action CSS property specifies whether, and in what ways, a given region can be manipulated by the user (for instance, by panning or zooming). It also allows to get rid of the 300ms delay on mobile.

https://gist.github.com/gajus/bbf06ea2e37047b01e70 https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action http://caniuse.com/#feat=css-touch-action

/* Keyword values */
touch-action: auto;
touch-action: none;
touch-action: pan-x;
touch-action: pan-left;
touch-action: pan-right;
touch-action: pan-y;
touch-action: pan-up;
touch-action: pan-down;
touch-action: manipulation;

/* Global values */
touch-action: inherit;
touch-action: initial;
touch-action: unset;