A tiny npm module to drag html elements on a page. This script was quickly made for developement purpose (do not use in production).
If you wish to use in production, please contact me for a quick collaboration towards making this script more complex.
This module will only work for elements not embedded in shadow doms.
yarn add quickdrag -D
import the module in your document :
Then tag the elements you want to drag :
The imported module will automatically process the
Load the page and now you can drag the element holding a click.
If you wish to register a draggable element manually :