     @resizeDragCanvas()
 
     # Re-scroll and redraw main
-    @scrollOffsets.main.y = @mainScroller.scrollTop
-    @scrollOffsets.main.x = @mainScroller.scrollLeft
+    @scrollOffsets.main.y = @mainScroller.scrollTop # TODO session
+    @scrollOffsets.main.x = @mainScroller.scrollLeft # TODO session
 
     @mainCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.main.x, -@scrollOffsets.main.y
 

    modeClass = modes[mode]
    if modeClass
      @options.mode = mode
      @mode = new modeClass modeOptions
    else
      @options.mode = null
      @mode = null

    # Set up event bindings before creating a view
    @bindings = {}

    # Instantiate an Droplet editor view
    @view = new view.View @standardViewSettings # TODO session
    @paletteView = new view.View helper.extend {}, @standardViewSettings, { # TODO session
      showDropdowns: @options.showDropdownInPalette ? false
    }
    @dragView = new view.View @standardViewSettings # TODO session

    boundListeners = []

