 
     desiredScrollLeft = left - horizontalScrollMarginInPixels
     desiredScrollRight = right + horizontalScrollMarginInPixels
-
-    if global.enableLogs
-      console.log "====== DB ======"
-      console.log "Screen Range: #{screenRange.toString()}"
-      console.log "Client Width: #{@getClientWidth()}"
-      console.log "#{desiredScrollLeft}/#{desiredScrollRight}"
-      console.log "#{@getScrollLeft()}/#{@getScrollRight()}"
-      console.log "================"
 
     if options?.reversed ? true
       if desiredScrollBottom > @getScrollBottom()

      @emitDidUpdateState()

  setScrollTop: (scrollTop) ->
    scrollTop = @constrainScrollTop(scrollTop)

    unless @scrollTop is scrollTop or Number.isNaN(scrollTop)
      @scrollTop = scrollTop
      @model.setScrollTop(@scrollTop)
      @didStartScrolling()
      @shouldUpdateVerticalScrollState = true
      @shouldUpdateHiddenInputState = true
      @shouldUpdateDecorations = true
      @shouldUpdateLinesState = true
      @shouldUpdateCursorsState = true
      @shouldUpdateLineNumbersState = true
      @shouldUpdateCustomGutterDecorationState = true
      @shouldUpdateOverlaysState = true

      @emitDidUpdateState()

  getScrollTop: ->
    @scrollTop

      if desiredScrollRight > @getScrollRight()
        @setScrollRight(desiredScrollRight)

  commitPendingScrollLeftPosition: ->
    scrollLeft = @constrainScrollLeft(@pendingScrollLeft)
    if scrollLeft isnt @scrollLeft and not Number.isNaN(scrollLeft)
      @scrollLeft = scrollLeft
      @model.setScrollLeft(scrollLeft)

  commitPendingScrollTopPosition: ->
    scrollTop = @constrainScrollTop(@pendingScrollTop)
    if scrollTop isnt @scrollTop and not Number.isNaN(scrollTop)
      @scrollTop = scrollTop
      @model.setScrollTop(scrollTop)

  updateScrollPosition: ->
    @commitPendingLogicalScrollPosition() if @pendingScrollLogicalPosition?
    @commitPendingScrollLeftPosition() if @pendingScrollLeft?
    @commitPendingScrollTopPosition() if @pendingScrollTop?

    @pendingScrollTop = null
    @pendingScrollLeft = null
    @pendingScrollLogicalPosition = null
