Touch events broken in build 112

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]

Okay… it looks like this is event.xStart and event.yStart are being set to to the current event’s x and y not where the event started. So the image doesn’t move.

This seems to be a problem with all the daily builds.

Thanks for posting the issue - we have pushed a fix and this will be available in our upcoming daily builds.

Okay… it looks like this is event.xStart and event.yStart are being set to to the current event’s x and y not where the event started. So the image doesn’t move.

This seems to be a problem with all the daily builds.

Thanks for posting the issue - we have pushed a fix and this will be available in our upcoming daily builds.