dragnclick

you are able to drag or click your html element, it's not conflicted.

Usage no npm install needed!

<script type="module">
  import dragnclick from 'https://cdn.skypack.dev/dragnclick';
</script>

README

you can use this module to make an html element draggable, and it can recognize the click action on this element. param1: the first param is the html element[required]. param2: the second param is a callback function,which means what you wanna do when the click action triggered[not required].