Continuing the discussion from Syncing treeview diagram with another diagram:
I also have a palette from which I can drag nodes and groups into my diagram. However, as soon as the object is dragged into myDiagram, a copy is created in the treeView. If I drag my mouse out and back in, another copy is created - and finally upon drop, a third copy is created.
I believe I should be checking to see if the current tool is draggingTool, but when I check, I seem to only be getting back ToolManager (line 378 in codepen)
Any thoughts on how to fix this?
Codepen example: