-
What I usually do is to do as you have there
I didn't do that.
Brilliant JS guy did it, leaving me with lots of obscure bugs to unpick.
I prefer vanilla, simple, clear JS if I ever have to touch JS.
I'm not even convinced of the need for jQuery let alone the plugins for it that we have on this site.
About the only thing I think fair enough to... is the Markdown editor and preview, but given the preview is a bit shit I think that would be improved by just going to the server and asking for a quick render.
If it makes certain things unresponsive then touchend should provide the speed without too much of the unintended firing.
What I usually do is to do as you have there and use a variable to set it to touchend for mobile, then if I do want the actual click event with its delay, just use 'click' as a string for that particular instance.