       # than changing the top value.
       @element.style.webkitTransform = 'translate3d(0, ' + offsetY + 'px, 0)'
 
-    getEndVelocity: () -> (@contentLastOffsetY - @contentStartOffsetY) / ((new Date).getTime() - @startTouchTime)
+    getEndVelocity: -> (@contentLastOffsetY - @contentStartOffsetY) / ((new Date).getTime() - @startTouchTime)
 
-    isDecelerating: () -> true
+    isDecelerating: -> true
 
     shouldStartMomentum: -> true
 
     stopMomentum: () ->
       if @isDecelerating()
         # Get the computed style object.
-        style = document.defaultView.getComputedStyle(this.element, null)
+        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.

      @stopMomentum()
      @startTouchY = e.touches[0].clientY
      @startTouchTime = (new Date).getTime()
      console.log( 'onTouchStart at', @startTouchY , 'Content start offset at', @contentStartOffsetY)

    onTouchMove: (e) ->
      return if not @isDragging
      console.log 'onTouchMove'

      currentY = e.touches[0].clientY
      deltaY = currentY - @startTouchY

      @element.addEventListener('touchstart', this, false)
      @element.addEventListener('touchmove', this, false)
      @element.addEventListener('touchend', this, false)

    handleEvent: (e) ->
      switch e.type
        when "touchstart"
