Skip to content

Instantly share code, notes, and snippets.

@jksk
Forked from Integralist/css-touch-delay.md
Created April 22, 2013 08:38
Show Gist options
  • Save jksk/5433303 to your computer and use it in GitHub Desktop.
Save jksk/5433303 to your computer and use it in GitHub Desktop.
CSS touch delay3

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