     dragging = false
     lastMousePosition = {}
     animationLoop = =>
+      @pauseScrollViewMeasurement()
       requestAnimationFrame =>
         if dragging
           screenPosition = @screenPositionForMouseEvent(lastMousePosition)

    window.addEventListener('mousemove', onMouseMove)
    window.addEventListener('mouseup', onMouseUp)

  requestScrollViewMeasurement: ->
    return if @measurementPending

    @scrollViewMeasurementRequested = true
    requestAnimationFrame =>

  # and use the scrollHeight / scrollWidth as its height and width in
  # calculations.
  measureScrollView: ->
    return if @scrollViewMeasurementPaused
    return unless @isMounted()

    {editor} = @props
