Fixed selection change when dragging
Previously, dragging a selected node deselected it; by setting isDragging on dragstart and deleting it on dragend, this can be prevented.
Selecting a node now happens on mouseup and not on click anymore.