             cursor = "move"
             directions = "+"
         else if (x1 + m/2) <= mx <= (x1 + 5*m/2) and (y - m/2) >= my >= (y - 5*m/2)
+          # Inside close handle
           cursor = "pointer"
           directions = "x"
-          # Inside close handle
         if directions
           matches.push({
             cursor: cursor

        else
          cursor = "move"
          directions = "+"
    @cursor = cursor or "crosshair"
    if type == "down"
      if crop and not directions

        directions: directions
        crop: (d for d in crop if crop)
    else if type == "up"
      if "x" == @mouseDownState?.directions
        @mouseDownState = {}
        return null
      else
        @mouseDownState = {}
        if crop
          [x, y, x1, y1] = crop
          if x - x1 == 0 or y - y1 == 0
            return null
    else if type == "move" and @mouseDownState?.x?
      if crop
        [x, y, x1, y1] = crop
