Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created May 20, 2012 15:32
Show Gist options
  • Save james2doyle/2758540 to your computer and use it in GitHub Desktop.
Save james2doyle/2758540 to your computer and use it in GitHub Desktop.
Adding a tap event to preserve as much functionality as possible for mobile users.
if( document.createTouch ) {
this.addEvent(c[j],'tap',this.tipOver,false);
} else {
this.addEvent(c[j],'mouseover',this.tipOver,false);
this.addEvent(c[j],'mouseout',this.tipOut,false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment