Does the click events overwrite the touch events on tablet devices?
I have a edge project that I need working on the computer and on Ipads.
But I cant tell if its the click event that is working or the touch event working on the Ipad
Can anyone help?
Click events won't overwrite touch events on iOS devices - both event types are supported.
However, touch events are fired instantly on touch, and will override click events if they both coexist on the same element. Also, click events in iOS have a built-in delay of about 300 ms to allow touch events (if they exist) to fire first.
Thank you for clearing that up for me
So even if I have both and the code is the same on the click and touch start/end the touch will fire first because of the delay.
That delay explains quite a lot. I thought it was my browser being laggy.