JSFiddle - React, Tailwind, and code Playground

HTML

<p>Touch the screen</p>

JavaScript

$(document.body).bind('touchstart', function(event){
    var touches = event.originalEvent.targetTouches[0];
    $('p').text("Your start coords is: x: " + touches.pageX + ", y: " + touches.pageY);
});
$(document.body).bind('touchend', function(event){
    var touches = event.originalEvent.targetTouches[0];
    $('p').text("Your end coords is: x: " + touches.pageX + ", y: " + touches.pageY);
});