While a node is dragged and right mouse button is clicked, the dragged node is replaced with the selected node.