Skip to content

Instantly share code, notes, and snippets.

/**
* This gist provides a simple solution for dragging an HTML element
* with a mouse or on a touch screen. It includes a fix for an issue
* specific to React.
*
* See [plain js implementation](https://github.com/blackslate/draggable/)
* [demo](https://blackslate.github.io/draggable/)
*
* See [React implementation](https://github.com/blackslate/draggable-react/)
* [demo](https://blackslate.github.io/draggable-react/)