 			@imageLayer.midY = @touchPoint.y
 	
 		if @isPinchKeyDown or @isPanKeyDown
-			dispatchTouchEvent("touchmove", event, @touchPointDelta)
+			dispatchTouchEvent("touchmove", @target, event, @touchPointDelta)
 		else
-			dispatchTouchEvent("touchmove", event)
+			dispatchTouchEvent("touchmove", @target, event)
 
 	mouseup: (event) =>
 		

	touches.push(createTouch(event, 2, offset)) if offset
			
	touchEvent.touches = touchEvent.changedTouches = touchEvent.targetTouches = touches
	
	print "Touch", type

	event.target.dispatchEvent(touchEvent)


cancelEvent = (event) ->
	event.preventDefault()
	event.stopPropagation()


class TouchEmulator extends BaseClass

	constructor: ->

		if event.keyCode is @keyPinchCode	
			@isPinchKeyDown = true
			@startPoint = @centerPoint = null
			@showTouchCursor()
			@imageLayer.midX = @point.x
			@imageLayer.midY = @point.y
			@wrap(document).addEventListener("keyup", @keyup, true)
