after few days of trying with no success, I came here (again..), to all of you experts.
first of all: live demo! because we all love live demos.
Codesandbox
https://codesandbox.io/s/drag-with-not-animation-b3eh7?file=/src/App.js
I'm trying to make interactive draggable and dropable arrows between containers(means - there is a connector to a box, you can drag your mouse from one of the containers to another box and an arrow between them will be created).
- implementation 1: I can get an animation of a draggable arrow while dragging - but the onDrop event does not fire.
- implementation 2: in the second implementation I can make the drop effect happen but not the animation.
NEVER THEM BOTH!
HELP! ;<
more detailed explanations inside the code.
what I've already tried:
- react-dnd - did not work also because it's based on the same DOM event system the native browser drag & drop API based on(or maybe(and probably) I did it wrong?).