Onclick and ontouchstart

I’ve always had an issue with onclick and ontouchstart on different devices eg…

In chrome on pc… onclick runs but not ontouchstart
On pc while running in mobile device mode… both onclick and touchstart run
On some devices… only touchstart runs

Is there tidy code to handle either ontouchstart OR onclick, NOT both? I’ve got by in the past by saying if innerWidth > 700 then … but that seems a bit butch.