     @_canvas.setAttribute "width",   @_pixelSize.x
     @_canvas.setAttribute "height",  @_pixelSize.y
 
-    @_updateCanvasToDocumentMatricies()
+    @_updateDocumentMatricies()
     @_bitmapFactory = @canvasBitmap = new Canvas.Bitmap @_canvas
     @queueDrawEpoch()
 


  _attachResizeListener: ->
    @_domListener window, "resize", (domEvent)=>
      @_updateCanvasToDocumentMatricies()

    @_canvas.parentElement && addResizeListener @_canvas.parentElement, @_resizeListener = =>
      @_updateCanvasGeometry()

  #   Listen to mouseups on window, but ignore any if we didn't get a mousedown on the canvas
  _attachPointerButtonListeners: ->
    @_domListener @_canvas, "mouseover", (domEvent)=>
      @_updateDocumentMatricies()

    @_domListener @_canvas, "mousedown", (domEvent)=>
      @_updateDocumentMatricies()
      @_restoreFocus()
      if domEvent.button == 0
        domEvent.preventDefault()
