JSFiddle - React, Tailwind, and code Playground

by bakhshi

HTML

<div class="touch"></div>

CSS

.touch{
    border:solid 1px black;
-WebKit-user-select:none;
    background-color:yellow;
    width:500px;
    height:500px;
}

JavaScript

$('.touch').on('mousedown touchstart mousemove touchmove mouseup touchend', function(e){
    console.log(e.type);
})