-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
I'm implementing a simple match the following options kind of UI.

I wrapped the the list component in DragDropContext using HTML5Backend. I defined the left side circles as DragSource and right side circles as DropTarget. For the DragSource nodes I defined collect function to return isDragging and getClientOffset from monitor:
function collect(connect, monitor) {
return {
...
isDragging: monitor.isDragging(),
clientOffset: monitor.getClientOffset(),
};
}The render function of my DragSource node is not called when I start dragging. I want to draw a line between the dragSource and the current drag mouse position and hence need to track the current drag position. I'm new to react-dnd, any help on how to implement this would be great.
Metadata
Metadata
Assignees
Labels
No labels