JSFiddle - React, Tailwind, and code Playground

HTML

<p>Touch the screen</p>

JavaScript

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