Increase cross-browser compatibility for touch input

Touch input is no longer broken in the latest Firefox and Safari.