Check if click was triggered by touch in modern browsers
This question is an update to this one, but for modern browsers. (Unfortunately the answers here are outdated and/or not in vanilla JavaScript). Essentially I want to perform a simple test to detect if a click event was triggered by touch or mouse input. The only answer in the aforementioned question that is foolproof and… Read More Check if click was triggered by touch in modern browsers