JSFiddle - React, Tailwind, and code Playground
by meo
HTML
<div></div>
CSS
div{
position: absolute;
background: rgba(255,23,0,1);
width: 100px;
height: 100px;
top:0;
left:0;
}
JavaScript
var body = document;
var firstDiv = document.getElementsByTagName("div")[0];
body.addEventListener("touchstart", function(e){
firstDiv.innerHtml = "e";
if (e.touches.length == 1) {
startX = e.touches[0].pageX;
startY = e.touches[0].pageY;
firstDiv.innerHtml = startY;
}
}, false);