Fixed touch and mouse handling regression when moving to jquery event
binding