JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>

CSS

#test {
    width:200px;
    height:200px;
    margin:10px;
    background:green;
    -ms-touch-action: none;
}

JavaScript

$(function() {
    function ev_canvas_pointer(e) {
        console.log(e.originalEvent.pageX);
    }
	$("#test").on('MSPointerDown MSPointerMove MSPointerUp', ev_canvas_pointer)

});