 
       # Temporarily ignoring x-scroll to fix bad x-scrolling behaviour
       # when dragging blocks out of the palette. TODO: fix x-scrolling behaviour.
-      #@scrollOffsets.palette.x = @paletteScroller.scrollLeft
+      # @scrollOffsets.palette.x = @paletteScroller.scrollLeft
 
       @paletteCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.palette.x, -@scrollOffsets.palette.y
       @paletteHighlightCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.palette.x, -@scrollOffsets.palette.y

    #
    # Draw a line if it is just a cursor
    if @hiddenInput.selectionStart is @hiddenInput.selectionEnd
      @cursorCtx.strokeStyle = '#000'
      @cursorCtx.strokeRect startPosition, textFocusView.bounds[startRow].y,
        0, @view.opts.textHeight

      # Also update scroll for the highlight ctx, so that
      # they can match the blocks' positions
      @highlightCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.main.x, -@scrollOffsets.main.y
      @cursorCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.main.x, -@scrollOffsets.main.y

      @redrawMain()

