         @grid.onMouseDown.subscribe(@onMouseDown)
         @onSelectedRangesChanged = new Slick.Event
 
-    onMouseDown: (e, args) =>
+    onMouseDown: (e, args, local) =>
         cell = @grid.getCellFromEvent(e)
+        @lastCell = x: cell.cell, y: cell.row
         @dragCell = cell
         return unless cell?
 

    activeRangeComplete: false
    ranges: []
    grid : null

    init: (grid) =>
        @grid = grid


        cell = @grid.getCellFromEvent(e)
        return unless cell?
        @lastCell = x: cell.cell, y: cell.row

        @activeRange = null
        #@ranges = []

        if e.metaKey and @activeRange
            @ranges.push @activeRange
            @activeRange = null

