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


  _attachPointerTouchListeners: ->
    @_domListener @_canvas, "touchstart",  (e) =>
      @_updateCanvasToDocumentMatricies()
      e.preventDefault()
      @_restoreFocus()


    @_canvas.setAttribute "width",   @_pixelSize.x
    @_canvas.setAttribute "height",  @_pixelSize.y

    @_updateDocumentMatricies()
    @_bitmapFactory = @canvasBitmap = new Canvas.Bitmap @_canvas
    @queueDrawEpoch()

