JSFiddle - React, Tailwind, and code Playground
by yuan zimin
HTML
<div id="test-div"></div>
CSS
#test-div {
width: 100px;
height: 100px;
background-color: #ddd;
}
JavaScript
var div = document.getElementById('test-div');
div.addEventListener('touchstart', function(e) {
var e = e || window.event;
console.log(e.touches);
console.log(e.touches[0].target);
console.log(e.touches[0].identifier);
console.log(e.touches[0].clientY);
}, false)