Learn how to use ES Drager's dragging functionality.
By default, any Drager component can be dragged by clicking and holding:
Tips: Middle mouse button to pan canvas, Ctrl + Scroll to zoom
You can limit the movement area using the limit
prop:
ES Drager provides three events for drag interactions:
onDragStart
- Called when dragging beginsonDrag
- Called continuously while draggingonDragEnd
- Called when dragging endsOpen your browser's console to see the events being fired.