DragSelect
DragSelect is a zero-dependency plain JavaScript library for drag selection that also handles drag and drop, auto-scroll, touch, and keyboard input. Maintained since 2017, it now ships a new React wrapper, @dragselect/react, to make wiring it up easier.
What it addresses
In 2017 the author needed drag selection for a work project and the only alternative was jQuery UI, so DragSelect was created as a dependency-free alternative.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
DragSelect
DragSelect is a zero-dependency plain JavaScript library for drag selection that also handles drag and drop, auto-scroll, touch, and keyboard input. Maintained since 2017, it now ships a new React wrapper, @dragselect/react, to make wiring it up easier.
Problem: In 2017 the author needed drag selection for a work project and the only alternative was jQuery UI, so DragSelect was created as a dependency-free alternative.
Posted by @thibaultjbeyer · Original source ↗
Story title · @thibaultjbeyer · · Source ↗
Show HN: 9+Y ago created DragSelect, 0 deps, today a React wrapper lulz
Submitted URL · @thibaultjbeyer · · Source ↗
https://DragSelect.com/
Source text · @thibaultjbeyer · · Source ↗
Plain JavaScript, 0 dependencies. Handles selection, also drag and drop, auto-scroll, touch, keyboard, etc.
Source text · @thibaultjbeyer · · Source ↗
New is @dragselect/react, so you can wire it up more easily.
Source text · @thibaultjbeyer · · Source ↗
2017 needed it for a work project and the only alternative was JQuery UI. lol. Maintaining it since.