Working on a website that is also viewable on mobile and need to bind an action on both touchstart and mousedown.
Looks like this
$(\"#roll\").bind
Wow, so many answers in this and the related question, but non of them worked for me (Chrome, mobil responsive, mousedown + touchstart). But this:
(e) => { if(typeof(window.ontouchstart) != 'undefined' && e.type == 'mousedown') return; // do anything... }