 
   render: ->
     skippedMarks = 0
+    drawingInProgress = false
     <g>
       {for annotation in @props.annotations
         annotation._key ?= Math.random()

              toolEnv =
                containerRect: @props.containerRect
                scale: scale
                disabled: isPriorAnnotation
                selected: mark is @state.selection and not isPriorAnnotation
                getEventOffset: @props.getEventOffset
                preferences: @props.preferences


              mark._key ?= Math.random()
              currentAnnotation = @props.annotations[@props.annotations.length - 1]
              drawingInProgress = @state.selection?._inProgress and mark isnt @state.selection

              if skippedMarks < currentAnnotation._hideMarksBefore
                skippedMarks += 1
