Stop touch events bubbling through pop up panel

My game displays an info panel and when this panel is displayed I want to prevent all the buttons below the panel being active.

Do I need to remove all the listeners from the buttons or is there a way to prevent touch events passing through the popup panel?

Thanks

Paul [import]uid: 7863 topic_id: 5035 reply_id: 305035[/import]

Ok great I seem to have worked out a solution so here it is in case it is of use to anyone else.

Essentially I add a touch event listener to the info panel that I am displaying and then add return true to prevent the event passing on to any other listeners

  
function removeInfo()  
  
 transition.to( infoPanel, { time=250, x=8, y=483} )  
 infoPanel:removeEventListener("touch", clickInfoPanel)  
  
end  
  
function clickInfoPanel( event )  
  
 return true  
  
end  
function displayInfo()  
  
 transition.to( infoPanel, { time=250, x=8, y=10 } )  
 infoPanel:addEventListener("touch", clickInfoPanel)  
  
end  
  

Hope this proves useful to others as I would imagine quite a common requirement [import]uid: 7863 topic_id: 5035 reply_id: 16507[/import]