 		return {x:0, y:0} if events.length < 2
 
 		current = events[events.length - 1]
-		first   = events[0]
-		time    = current.time - first.time
-
+		first = events[0]
+		time = current.time - first.time
 
 		velocity =
 			x: (current.point.x - first.point.x) / time

			pressTimer: window.setTimeout(@longpressstart, GestureInputLongPressTime * 1000)
			started: {}
			events: []
			sanitizeRotation: Utils.sanitizeRotation()
			eventCount: 0

		event = @_getGestureEvent(event)

		@_process(@_getGestureEvent(event))

	touchend: (event) =>

		# Only fire if there are no fingers left on the screen

		if event.touches?
