     minScrollbarLength    : 64
     useSelectionScroll    : on
 
-  renderTopWaypoint: ->
+  onUpLimitReached: ->
 
-    return null  unless @props.hasMore
+    return  unless @props.hasMore
 
-    <Waypoint onEnter={@props.onTopThresholdReached} threshold={@props.threshold} />
+    @props.onTopThresholdReached?()
 
 
-  renderBottomWaypoint: ->
+  onDownLimitReached: ->
 
-    return null  unless @props.hasMore
+    return  unless @props.hasMore
 
-    <Waypoint onEnter={@props.onThresholdReached} threshold={@props.threshold} />
+    @props.onThresholdReached?()
 
 
   render: ->

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}
      onUpLimitReached={@bound 'onUpLimitReached'}
      onDownLimitReached={@bound 'onDownLimitReached'}
      ref='scrollContainer'>
      {@props.children}
    </PerfectScrollbar>


