 
   _unsetCurrentObject: ->
     @currentObjectSubscriptions?.dispose()
+    @currentObject?.enableDragging()
     @currentObject = null
 
   _unsetCurrentNode: ->


  activate: ->
    @objectEditor.activate()
    @subscriptions = @objectEditor.editors.Path.on('mousedown:node', @onMouseDownNode.bind(this))
    svg = @svgDocument.getSVGRoot()
    svg.on 'mousedown', @onMouseDown
    svg.on 'mousemove', @onMouseMove

  deactivate: ->
    @objectEditor.deactivate()
    @subscriptions?.dispose()
    @_unsetCurrentObject()
    svg = @svgDocument.getSVGRoot()
    svg.off 'mousedown', @onMouseDown
    svg.off 'mousemove', @onMouseMove
    svg.off 'mouseup', @onMouseUp
    @active = false

  onChangedSelectedObject: ({object, old}) =>
    old.disableDragging() if old?

  onMouseDownNode: (event) ->
    {node} = event
