1. Utilities
  2. setDraggable

Utilities

setDraggable

setDraggable utility function sets the element back to its original position on leaving the element.

Demo

Drag Me

Usage

        <script>
  import { setDraggable } from 'sveltronics';
</script>

<div use:setDraggable>
  Drag Me
</div>