     top = Math.max(top, 0)
     top = Math.min(top, @miniScrollView.outerHeight() - miniOverLayerHeight)
     # @note: currently, no animation.
-    @editorView.scrollTop(top)
+    @editorView.updateScroll()
     # Fix trigger `mousewheel` event.
     setTimeout =>
       @isClicked = false


    # current editor bind scrollTop event
    @editor.off 'scroll-top-changed.editor'
    @editor.on 'scroll-top-changed.editor', @scrollTop
    @editor.off 'scroll-left-changed.editor'
    @editor.on 'scroll-left-changed.editor', @scrollLeft

  getActiveBuffer: ->
    @buffer = @editor?.getBuffer?()


  mouseWheel: (e) =>
    return if @isClicked

    @editorView.updateScroll()

  updateScroll: =>
    minimapHeight = @miniScrollView.outerHeight()
    scrollViewHeight = @scrollView.outerHeight()
    scrollViewOffset = @scrollView.offset().top
