I can check if mousedown
has been triggered like so:
$(something).on("mousemove touchmove", function(e) {
if (e.buttons == 1){
// mouse is down
}
})
Very simple question, how can I check if touchstart
has been triggered in the above? I tried:
if (e.type === 'touchstart'){
// touchstart has been triggered
}
This did now work at all. Can someone please provide direction as to how I can achieve this?