Skip to content

Instantly share code, notes, and snippets.

@uhtred
Last active August 29, 2015 14:06
Show Gist options
  • Save uhtred/4410f1446cfac17988e0 to your computer and use it in GitHub Desktop.
Save uhtred/4410f1446cfac17988e0 to your computer and use it in GitHub Desktop.
JS: Fix Touches
function fixTouches( e ) {
if(e.originalEvent.touches && e.originalEvent.touches.length) {
e.touches = e.originalEvent.touches;
} else if(e.originalEvent.changedTouches && e.originalEvent.changedTouches.length) {
e.touches = e.originalEvent.changedTouches;
}
}
// Solve jQuery touch events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment