Skip to content

Instantly share code, notes, and snippets.

@alexgibson
Created January 30, 2012 13:57
Show Gist options
  • Save alexgibson/1704521 to your computer and use it in GitHub Desktop.
Save alexgibson/1704521 to your computer and use it in GitHub Desktop.
hack to enable active pseudo styles in mobile webkit
//enable active pseudo styles in mobile webkit. Only required if not already using touch events
function enableActivePseudoStyles() {
document.addEventListener("touchstart", function () {}, false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment