     @attachmentLocationRange = null
 
   compositionDidRequestChangingSelectionToLocationRange: (locationRange) ->
+    return if @loadingSnapshot and not @isFocused()
     @requestedLocationRange = locationRange
     @documentWhenLocationRangeRequested = @composition.document
     @render() unless @handlingInput

  compositionDidLoadSnapshot: ->
    @compositionController.refreshViewCache()
    @render()

  getSelectionManager: ->
    @selectionManager

      Math.floor(new Date().getTime() / Trix.config.undoInterval)
    else
      0

  isFocused: ->
    @editorElement is @editorElement.ownerDocument?.activeElement
