Hi Guys
This bug can be demonstrated by running the code in the simulator, it also fails on the iPhone.
Basically if a button / object with a touch listener is part of a group thats within another group and the most outer group is rotated the button will lose the touch event at certain degrees (180 is set in the code). Its a big bug if you are rotating the screen to let the iPhone work upside down as all buttons stop working.
Sample Code, bug exists in Corona 1.1
– Hide Status Bar
display.setStatusBar(display.HiddenStatusBar)
– Interface
interfaceGroup = display.newGroup()
interfaceGroup.xReference = 160
interfaceGroup.yReference = 240
local rect1 = display.newRect( 110, 350, 100, 100 )
rect1:setFillColor(255,255,255)
– Touch Response
local function buttonAction()
rect1:setFillColor(math.random(0,255),math.random(0,255),math.random(0,255))
end
rect1:addEventListener( “touch”, buttonAction )
interfaceGroup:insert(rect1)
masterGroup = display.newGroup()
masterGroup.xReference = 160
masterGroup.yReference = 240
masterGroup:insert(interfaceGroup)
transition.to(masterGroup, { rotation=180, time=400, delay=2000 } ) [import]uid: 5354 topic_id: 640 reply_id: 300640[/import]