       return if highlightStartIndex is -1
 
       offset = $canvas.offset()
-      highlightEndIndex = @_findClosestSegment pageNumber,
+      highlightEndPosition =
         left: e.pageX - offset.left
         top: e.pageY - offset.top
+      highlightEndIndex = @_findClosestSegment pageNumber, highlightEndPosition
 
       return if highlightEndIndex is -1
 
-      @_showHighlight pageNumber, highlightStartIndex, highlightEndIndex
+      @_showHighlight pageNumber, highlightStartPosition, highlightStartIndex, highlightEndPosition, highlightEndIndex
 
     $canvas.mousedown (e) =>
       offset = $canvas.offset()

        # Mouse went up at the same location that it started, we just cleanup
        @_closeHighlight pageNumber
      else
        @_openHighlight pageNumber, highlightStartIndex, highlightEndIndex

      highlightStartPosition = null
      highlightStartIndex = -1
      highlightEndIndex = -1


    #@_showSegments pageNumber

    highlightStartPosition = null
    highlightEndPosition = null
    highlightStartIndex = -1
    highlightEndIndex = -1

