 kd = require 'kd'
 React = require 'kd-react'
-Waypoint = require 'react-waypoint'
 
 PerfectScrollbar = require 'app/components/perfectscrollbar'
 

    <PerfectScrollbar
      {...@props}
      className={kd.utils.curry 'Scrollable', @props.className}
      ref='scrollContainer'>
      {@renderTopWaypoint()}
      {@props.children}
      {@renderBottomWaypoint()}
    </PerfectScrollbar>



    minScrollbarLength    : 64
    useSelectionScroll    : on

  onUpLimitReached: ->

    return  unless @props.hasMore

    @props.onTopThresholdReached?()


  onDownLimitReached: ->

    return  unless @props.hasMore

    @props.onThresholdReached?()


  render: ->
