README
Usage
import dragMove from 'drag-ele'
new dragMove(document.getElementById('move'))
Case
Todo
- When drag an element inside his parentNode(this parentNode also be new DragMoved),keep parentNode static.
- PauseFunc
Make Dom element can be dragged.Support PC&Mobile
<script type="module">
import dragEle from 'https://cdn.skypack.dev/drag-ele';
</script>
import dragMove from 'drag-ele'
new dragMove(document.getElementById('move'))