   return
 
 
-
-###*
-# `touchend` handler for scrollable view.
-#
-#
+###*
+# `touchend` handler ends scrolls initiated by a touch event.
+#
+# @param {TouchEvent} e - The touchend event.
+#
+# @function onTouchEnd
 ###
 onTouchEnd = (e) ->
   stopScrolling()

scrolling = false


wheelTimer = null


WHEEL_TIME = 100


###*
# Maximum scrollable height.
#
#
###
max = Infinity



min = 0



offset = 0


reference = 0


refHeight = 0


startScrolling = (e) ->
  scrolling = true
  reference = ypos e
  refHeight = parseInt(getComputedStyle(@root.firstChild).height)
  max = refHeight - window.innerHeight


stopScrolling = ->
  scrolling = false


###*
# `touchstart` handler for scrollable view.
#
#
###
onTouchStart = (e) ->
  startScrolling.call @, e

  return


###*
# The scroll movement handler. This method handled `touchmove` or `wheel`
# events.
#
# @param {Event} e - The movement event.
#
# @function onMove
###
onMove = (e) ->
  if scrolling
