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


    @displayCodeHighlights = atom.config.get('minimap.displayCodeHighlights')

    atom.config.observe 'minimap.minimapScrollIndicator', =>
      @miniScrollVisible = atom.config.get('minimap.minimapScrollIndicator')
      @miniScroller.toggleClass 'visible', @miniScrollVisible

    atom.config.observe 'minimap.useHardwareAcceleration', =>
      @updateScroll() if @ScrollView?

    atom.config.observe 'minimap.displayCodeHighlights', =>
      newOptionValue = atom.config.get 'minimap.displayCodeHighlights'
      @setDisplayCodeHighlights(newOptionValue)


    @editorView.scrollTop(top / @scaleY)


  #    ########  ########  #### ##     ##    ###    ######## ########
  #    ##     ## ##     ##  ##  ##     ##   ## ##      ##    ##
  #    ##     ## ##     ##  ##  ##     ##  ##   ##     ##    ##
  #    ########  ########   ##  ##     ## ##     ##    ##    ######
  #    ##        ##   ##    ##   ##   ##  #########    ##    ##
  #    ##        ##    ##   ##    ## ##   ##     ##    ##    ##
  #    ##        ##     ## ####    ###    ##     ##    ##    ########

  # Returns a {String} containing a css transform translation.
  #
