Overlapping buttons

local function OnTouch ( event )  
 -- some codes  
   
 -- Important to return true. This tells the system that the event  
 -- should not be propagated to listeners of any objects underneath.  
 return true  
end  

Why this works only with Touch events and not with Tap events too?

[import]uid: 89239 topic_id: 19174 reply_id: 319174[/import]

Can you post your event listener?
The listener must be set on either “touch” or “tap” depending on what you want.

SomeButton:addEventListener( "tap", OnTap ) SomeButton:addEventListener( "touch", OnTouch ) [import]uid: 58885 topic_id: 19174 reply_id: 73978[/import]