 
     # current editor bind scrollTop event
     @editor.off 'scroll-top-changed.editor'
-    @editor.on 'scroll-top-changed.editor', @scrollTop
+    @editor.on 'scroll-top-changed.editor', @updateScroll
     @editor.off 'scroll-left-changed.editor'
-    @editor.on 'scroll-left-changed.editor', @scrollLeft
+    @editor.on 'scroll-left-changed.editor', @updateScroll
 
   getActiveBuffer: ->
     @buffer = @editor?.getBuffer?()

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


  mouseWheel: (e) =>
    return if @isClicked

    @editorView.updateScroll()

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