Created
November 7, 2011 10:04
-
-
Save tvandervossen/1344596 to your computer and use it in GitHub Desktop.
Multitouch recognizer event binding
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
$('.tap').recognize('tap').bind( | |
'touchstart touchenter', function() { | |
$(this).addClass('active'); | |
}).bind( | |
'touchleave touchend touchcancel', function() { | |
$(this).removeClass('active'); | |
}).bind( | |
'tap', function() { | |
log('Tapped'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment