jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.64k stars 722 forks source link

Can't get ondragend to fire when dragging nodes from the list onto the editor #249

Closed DominicWindisch closed 3 years ago

DominicWindisch commented 3 years ago

I need to detect the cancellation of dragging a new node onto the editor. I'd usually use the ondragend event for this; however, it just won't fire when using with Drawflow.

You can see it in action here: https://jsfiddle.net/wd7r81yz/1/

I've added a console log on drag start and end for the "Facebook" node in line 25 of the html. Any idea on how to get the dragend firing or why it is not firing? My only guess would be some intersection with the onmouseup event but I couldn't quite figure it out.

DominicWindisch commented 3 years ago

Nevermind, overseen something on my end. AND in the example. 🤦‍♂️