$(document).bind 'touchstart', (event) ->
console.log event.touches
This is always undefined, I can't figure out why. As is targetTouches
.
Any ideas? I'm testing on an iPad.
Thanks.
Your syntax looks weird to me but in regular javascript:
$(document).bind('touchstart', function(event) {
console.log(event.originalEvent.touches);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With