 define ['jquery','cs!umobi.core'], ->
 
+  debug = false
+
   $(->
+    # TODO: range slider need this.
     document.body.addEventListener('touchmove', ((e) ->
       # This prevents native scrolling from happening.
       e.preventDefault()

      @element.addEventListener('touchstart', this, false)
      @element.addEventListener('touchmove', this, false)
      @element.addEventListener('touchend', this, false)
    handleEvent: (e) ->
      switch e.type
        when "touchstart"

      # than changing the top value.
      @element.style.webkitTransform = 'translate3d(0, ' + offsetY + 'px, 0)'

    getEndVelocity: -> (@contentLastOffsetY - @contentStartOffsetY) / ((new Date).getTime() - @startTouchTime)

    isDecelerating: -> true

    shouldStartMomentum: -> true

    stopMomentum: () ->
      if @isDecelerating()
        # Get the computed style object.
        style = document.defaultView.getComputedStyle(@element, null)
        # Computed the transform in a matrix object given the style.
        transform = new WebKitCSSMatrix(style.webkitTransform)
        # Clear the active transition so it doesn’t apply to our next transform.
