Touch events seem to be broken in 2013.122 in both Windows Sim and Mac Sim and iOS device. I’m working with images bigger than the display (1600x1200). Code below won’t respond to touches… It works fine on 2013.1225.
[lua]
imagea = display.newImage(“image1.jpg”,display.contentCenterX,display.contentCenterY,true)
function imagea:touch( event )
if event.phase == “began” then
self.markX = self.x – store x location of object
self.markY = self.y – store y location of object
elseif event.phase == “moved” then
local x = (event.x - event.xStart) + self.markX
local y = (event.y - event.yStart) + self.markY
self.x, self.y = x, y – move object based on calculations above
end
return true
end
– make ‘myObject’ listen for touch events
imagea:addEventListener( “touch”, imagea )
[/lua]