 
 {DOMEventManager} = require "./DOMEventManager"
 
+TouchStart = "touchstart"
+TouchMove = "touchmove"
+TouchEnd = "touchend"
+
+if not Utils.isTouch()
+	TouchStart = "mousedown"
+	TouchMove = "mousemove"
+	TouchEnd = "mouseup"
 
 Utils.sanitizeRotation = ->
 	previous = null

	touchend: (event) =>
		# Only fire if there are no fingers left on the screen

		if Utils.isTouch()
			return unless (event.touches.length == 0)
		else
			return unless (event.touches.length == event.changedTouches.length)

		@em.wrap(window).removeEventListener("touchmove", @touchmove)
		@em.wrap(window).removeEventListener("touchend", @touchend)
		@em.wrap(window).removeEventListener("webkitmouseforcechanged", @_updateMacForce)

		event = @_getGestureEvent(event)

		# Only fire if we are not already in a session
		return if @session

		@em.wrap(window).addEventListener(TouchMove, @touchmove)
		@em.wrap(window).addEventListener(TouchEnd, @touchend)
		@em.wrap(window).addEventListener("webkitmouseforcechanged", @_updateMacForce)

		@session =
