JSFiddle - React, Tailwind, and code Playground

by Jörn Berkefeld

HTML

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

CSS

#test {
    width:200px;
    height:200px;
    margin:10px;
    background:green;
}

JavaScript

$(function() {
    function ev_canvas_pointer(e) {
        // README this peace of Code SHOULD work, but jQuery does not support it yet
        // IE10 fires mouse events though -> default mouse-to-finger mapping is ok, but you cant get multi-finger events to work with that
        console.log("ev_canvas_touch",JSON.stringify(e, null, "\t"));
    }
	$("#test").on('MSPointerDown MSPointerMove MSPointerUp', ev_canvas_pointer)

});