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
Fixed using this code
var mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent); var start = mobile ? "touchstart" : "mousedown"; $("#roll").bind(start, function(event){