I have an ontouchstart event triggered on my mobile view, its linked to this:
ontouchstart
function mobileLinksShow() { document.querySelector(\'.mobile-head
You can bind a function to ontouchstart which calls whatever is bound to onclick, but then prevents default so that it doesn't actually also trigger onclick.
You can then easily copy paste this ontouchstart event to all places where you use onclick.