Utilities
setDraggable
setDraggable
utility function sets the element back to its original position on leaving the element.
Demo
Drag Me
Utilities
setDraggable
utility function sets the element back to its original position on leaving the element.
<script>
import { setDraggable } from 'sveltronics';
</script>
<div use:setDraggable>
Drag Me
</div>