Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

event.touches is always undefined

$(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.

like image 427
fancy Avatar asked Oct 27 '11 23:10

fancy


1 Answers

Your syntax looks weird to me but in regular javascript:

$(document).bind('touchstart', function(event) {
    console.log(event.originalEvent.touches);
});
like image 56
Esailija Avatar answered Oct 22 '22 08:10

Esailija