if touchstart then register only touch events, and mouse events only when mousedown