
PlainDraggable is a simple and high performance library to allow HTML/SVG element to be dragged.
Features:
- Accept HTML/SVG element as an element that comes to be draggable.
- Restrict the draggable area.
- Snap the draggable element to other elements, points, lines, consecutive points (i.e. grid) or something.
- Use
requestAnimationFrame
API,translate
andwill-change
CSS if possible, for high performance.