Last active
August 29, 2015 14:06
-
-
Save uhtred/4410f1446cfac17988e0 to your computer and use it in GitHub Desktop.
JS: Fix Touches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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