           move:       @gestureMove.bind @
           end:        @gestureEnd.bind @
 
-  # _setVerticalAxis: ->
-  #   @newPoint = (mainV, crossV = 0) -> point crossV, mainV
-  #   @getPagePosition = (page) -> page?.transformToAncestorSpaceY(0, @) || 0
-  #   @getMainCoordinate = (pnt) -> pnt.y
-
-  # _setHorizontalAxis: ->
-  #   @newPoint = (mainV, crossV = 0) -> point mainV, crossV
-  #   @getPagePosition = (page) -> page?.transformToAncestorSpaceX(0, @) || 0
-  #   @getMainCoordinate = (pnt) -> pnt.x
-
-  # getPageSize: (page) -> if !page then 0 else @getMainCoordinate page.getCurrentSize()
-  # getPageEdgeOffset: ({page, atEndEdge}) -> if atEndEdge then @getPageSize page else 0
-  # getPageCenter: (page)-> @getPagePosition(page) + @getPageSize(page) / 2
-
-  # defaultReferenceFrame =
-  #   page: null
-  #   atEndEdge: false
-
-  # @concreteProperty
-  #   startAtEnd: default: false
-
-  #   referenceFrame:
-  #     default: defaultReferenceFrame
-
-  #     postSetter: (newReferenceFrame, previousReferenceFrame) ->
-  #       console.warn "referenceFrame_postSetter - frame didn't change" unless newReferenceFrame != previousReferenceFrame
-
-  #       @_addToScrollPosition delta = @getReferenceFrameDelta newReferenceFrame, previousReferenceFrame
-  #       # log setReferenceFrame:
-  #       #   newReferenceFrame: newReferenceFrame
-  #       #   previousReferenceFrame: previousReferenceFrame
-  #       #   delta: delta
-
-  #       @_updatePointerReferenceFrame newReferenceFrame
-
-  #       @_queueUpdateEvent newReferenceFrame, previousReferenceFrame
-
-  #       @_updatePagesSplit()
-
-  #   pages:
-  #     default: []
-  #     validate: (pages) -> isPlainArray pages
-  #     postSetter: (pages, oldPages)->
-
-  #       {page, atEndEdge} = referenceFrame = @getPendingReferenceFrame()
-
-  #       if @_atEnd
-  #         atEndEdge = true
-  #         page = last pages
-  #       if @_atStart || !page
-  #         atEndEdge = false
-  #         page = first pages
-
-  #       # log setPages:
-  #       #   atStart: @_atStart
-  #       #   atEnd: @_atEnd
-  #       #   pages: pages && (p?.inspectedName for p in pages)
-  #       #   referenceFrame:
-  #       #     page: page?.inspectedName
-  #       #     atEndEdge: atEndEdge
-
-  #       if referenceFrame.page && 0 > pages.indexOf referenceFrame.page
-  #         console.warn(
-  #           """
-  #           PagingScrollElement#pages setter: New page list does not contain the current referenceFrame. ALWAYS include the current referenceFrame when setting pages. Screen will jump!
-
-  #           page keys: #{inspect (page.key for page in pages)}
-  #           """
-  #         )
-
-  #       if referenceFrame.page != page || referenceFrame.atEndEdge != atEndEdge
-  #         # setReferenceFrame will call _updatePagesSplit
-  #         @setReferenceFrame page: page, atEndEdge: atEndEdge
-  #       else
-  #         @_updatePagesSplit()
-
-  #       if oldPages.length > 0
-  #         @onNextReady => @_updateAtStartAndAtEnd()
-
-  #   scrollPosition:
-  #     default: 0
-  #     postSetter: (position) ->
-  #       @_scrollPositionChanged()
-  #       # throw new Error if maxCount-- < 0
-  #       # console.error "setScrollPosition #{position}"
-  #       @onNextReady => @_updateAtStartAndAtEnd()
-  #       ###
-  #       TODO
-  #       NOTES on childrenAlignment:
-  #         This doesn't work yet.
-
-  #         This needs to update whenever the size of children or parent changes.
-
-  #         This code only updates when scrollPosition changes.
-  #       ###
-  #       # if @_scrollContents.getCurrentSize().lte @getCurrentSize()
-  #       #   axis = @_scrollContents.setAxis @getPendingChildrenAlignment()
-  #       #   @_scrollContents.setLocation ww: axis.x, hh: axis.y
-  #       #   @newPoint position
-  #       # else
-  #       #   @_scrollContents.setAxis 0
-  #       @_scrollContents.setLocation @newPoint position
-  # # maxCount = 5
-
   _scrollPositionChanged: ->
     unless @_activelyScrolling
       @queueEvent "scrollingActive"

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


      numChildrenOnScreen


  # ###################
  # # Gestures
