 {$, View} = require 'atom-space-pen-views'
 Delegato = require 'delegato'
-{CompositeDisposable, Disposable} = require 'event-kit'
+{CompositeDisposable, Disposable, Emitter} = require 'event-kit'
 
 MinimapRenderView = require './minimap-render-view'
 MinimapIndicator = require './minimap-indicator'

  updateScroll: =>
    @indicator.setX(@scrollView.scrollLeft)
    @updateScrollY()
    @trigger 'minimap:scroll'

  # Internal: Updates the position of the various elements of the minimap
  # after a scroll changes.


    @subscriptions.add atom.config.observe 'editor.preferredLineLength', =>
      @updateMinimapSize()

  onDidScroll: (callback) ->
    @emitter.on 'did-scroll', callback

  # Internal: Computes the scale of the minimap display relatively to the
  # corresponding editor view.
