fix(cockpit/diagram): deselect current selection

Chrome behaves sometimes confusing, the mousemove event triggers even if
no mousemovement happened after a mousedown event. That's why sometimes it
is not possible to deselect your current selection on the diagram.

This commit provide a workaround to handle this strange behavior.