add the drag event for the node and fix the conflict between click and drag event