 
       numChildrenOnScreen
 
-  #   atEnd:                     -> @_atEnd
-  #   atStart:                   -> @_atStart
-  #   inMiddle:                  -> !@_atEnd && !@_atStart
-  #   pagesFitInWindow:          -> @getWindowSize() >= @getTotalPageSize()
-  #   currentPagePosition:       -> @getMainCoordinate @_scrollContents.getCurrentLocation()
-  #   pagesBeforeBaselineSize:   -> @getMainCoordinate @_pagesBeforeBaselineWrapper.getCurrentSize()
-  #   pagesAfterBaselineSize:    -> @getMainCoordinate @_pagesAfterBaselineWrapper.getCurrentSize()
-  #   pagesBeforeBaseline:       -> @_pagesBeforeBaselineWrapper.getChildren()
-  #   pagesAfterBaseline:        -> @_pagesAfterBaselineWrapper.getChildren()
-  #   totalPageSize:             -> @getPagesBeforeBaselineSize() + @getPagesAfterBaselineSize()
-
-  #   # should return 1 + the number of non-focusedPage pages on-screen in _pagesBeforeBaselineWrapper
-  #   pagesOnScreenBeforeBaseline: ->
-  #     pixelsOnScreen = @getScrollPosition()
-  #     totalSize = 0
-  #     count = 0
-  #     for page in pages = @_pagesBeforeBaselineWrapper.getChildren() by -1
-  #       count++
-  #       totalSize += @getMainCoordinate page.getCurrentSize()
-  #       break if totalSize >= pixelsOnScreen
-
-  #     if totalSize < pixelsOnScreen && pages.length > 0 && totalSize > 0
-  #       averagePageSize = totalSize / pages.length
-  #       pixelsLeft = pixelsOnScreen - totalSize
-  #       count += ceil pixelsLeft / averagePageSize
-  #     count
-
-  #   # should return 1 + the number of non-focusedPage pages on-screen in _pagesAfterBaselineWrapper
-  #   pagesOnScreenAfterBaseline: ->
-  #     pixelsOnScreen = @getWindowSize() - @getScrollPosition()
-  #     totalSize = 0
-  #     count = 0
-  #     for page in pages = @_pagesAfterBaselineWrapper.getChildren()
-  #       count++
-  #       totalSize += @getMainCoordinate page.getCurrentSize()
-  #       break if totalSize >= pixelsOnScreen
-
-  #     if totalSize < pixelsOnScreen && pages.length > 0 && totalSize > 0
-  #       averagePageSize = totalSize / pages.length
-  #       pixelsLeft = pixelsOnScreen - totalSize
-  #       count += ceil pixelsLeft / averagePageSize
-  #     count
-
-  #   currentGeometry: ->
-  #     windowSize = @getWindowSize()
-  #     currentPos = @getCurrentPagePosition()
-  #     pixelsBefore = @getPagesBeforeBaselineSize()
-  #     pixelsAfter = @getPagesAfterBaselineSize()
-  #     numPages = @_pages.length
-  #     totalPageSize = pixelsBefore + pixelsAfter
-
-  #     suggestedPageSpread = @getPagesOnScreenBeforeBaseline() + @getPagesOnScreenAfterBaseline()
-
-  #     currentPagePosition:              currentPos
-  #     windowSize:                       windowSize
-  #     numPages:                         numPages
-  #     numPagesBeforeBaseline:           @_pagesBeforeBaselineWrapper.getChildren().length
-  #     numPagesAfterBaseline:            @_pagesAfterBaselineWrapper.getChildren().length
-  #     totalPageSize:                    totalPageSize
-  #     focusedPageBeforeBaseline:        @getReferenceFrame().atEndEdge
-  #     suggestedPageSpread:              suggestedPageSpread
-  #     pixelsOffscreenBeforeWindow:      pixelsBefore - currentPos
-  #     pixelsOffscreenAfterWindow:       pixelsAfter - windowSize + currentPos
-  #     pagesBeforeBaselineSize:          pixelsBefore
-  #     pagesAfterBaselineSize:           pixelsAfter
 
   # ###################
   # # Gestures

      )
      @queueEvent "scrollUpdate", =>
        {
          childrenSize
          windowSize
          focusedChild
          firstOnScreenChildIndex

    @_pendingState._focusedChild = focusedChild
    focusedChildPos

  animateToValidScrollPosition: ->
    pendingScrollPosition = @getScrollPosition true

