Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created April 22, 2013 08:03
Show Gist options
  • Save Integralist/5433171 to your computer and use it in GitHub Desktop.
Save Integralist/5433171 to your computer and use it in GitHub Desktop.
CSS touch delay

Although it's possible to extend the above optimisation approach to checknavigator.maxTouchPoints and to then hook up our listener to pointerup rather than click, there is a much simpler way: setting the touch-action CSS property of our element to none eliminates the delay.

/* suppress default touch action like double-tap zoom */
a, button {
    -ms-touch-action: none;
        touch-action: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment