Improved dragging nodes in diagrams