Bugfix for document.ontouchstart detection