I have two trees. When dragging and dropping within a tree, I want the item I’m dragging to move (not copy). To achieve this, I disable mercy drag.
However, when dragging and dropping from one tree to the other, I want the item to be copied, so that it remains in the source tree.
I assume I can somehow achieve this by attaching events onDrag and onDrop to the two trees, but I’m not sure how I can tell the source tree not to delete the item being dragged. How can I achieve this?