       track.appendChild mainScroller
       mainScroller.appendChild mainScrollerStuffing
 
+      track.appendChild drag
+
       computeCanvasDimensions = =>
-        @main.height = @el.offsetHeight; @main.style.height = "#{@el.offsetHeight}px"
-        @main.width = @el.offsetWidth - PALETTE_WIDTH; @main.style.width = "#{@el.offsetWidth - PALETTE_WIDTH}px"
+        @main.height = @lassoSelectCanvas.height = @el.offsetHeight
+        @main.style.height = @lassoSelectCanvas.style.height = "#{@el.offsetHeight}px"
+        @main.width = @lassoSelectCanvas.width = @el.offsetWidth - PALETTE_WIDTH
+        @main.style.width = @lassoSelectCanvas.style.width = "#{@el.offsetWidth - PALETTE_WIDTH}px"
         
         @palette.style.top = paletteScroller.style.top = @paletteHeader.style.height = "#{@paletteHeaderHeight}px"
         @palette.height = @el.offsetHeight - @paletteHeaderHeight; @palette.style.height = "#{@el.offsetHeight - @paletteHeaderHeight}px"

      # The main canvas
      @main = document.createElement 'canvas'; @main.className = 'canvas'

      # The palette canvas
      @palette = document.createElement 'canvas'; @palette.className = 'palette'


      computeCanvasDimensions()

      # Append the children
      for child in [@main, @palette, @hiddenInput, @paletteHeader, track]
        @el.appendChild child

      # Get the contexts from each canvas
      @mainCtx = @main.getContext '2d'
      @dragCtx = drag.getContext '2d'
      @paletteCtx = @palette.getContext '2d'
      @lassoSelectCtx = @lassoSelectCanvas.getContext '2d'
      
      # Transform to allow border.
      # In the css, we also put in a pixel margin,
