 
 
   activateMouseMove: ->
-    body = document.querySelector 'body'
+    body = @elements.body
     body.addEventListener 'mousemove',(ev) =>  @mouseMove.apply @,[ev]
 
   insertMain:->


  updateBgPos: ->
    conf = @configWnd.get('editor-background')
    body = qr 'body'
    factor = conf.box3d.mouseFactor
    polowaX = body.clientWidth // 2
    polowaY = body.clientHeight // 2


  applyBackground: ->
    if @packagesLoaded
      workspaceView = @elements.workspace
      #console.log 'workspaceView',workspaceView
      if workspaceView?
        workspaceView.className += ' editor-background'
