Fixed broken drag component

Last commit broke dragging the nodes. Dragging is not complete. Letting
go of dragged node executes onclick function. Need to distinguish the two.