Hi Brent,
I did it so but it don’t solve the issue.
function button_listener(event)
thisButton = event.target
function rect_listener(event)
– here is the issue where the “tap” event is automatically intruded
if(event.target == thisButton) then ignore else do stuff end
end
create a rect
rect:addeventlistener(“tap”, rect_listener)
create a table view
end
local button = {
on_release = button_listener
}
As you can see, if in the tap event listener for the rect, event.target is the rect and not the button. I want that rect to get tap events and there are listener actions. But our “tap” event first hit button, and then hit “rect”. it is not possible to stop tap event hitting rect, other than putting another object even on top of it. after hitting rect, event.target is rect and hence the same as normal rect hit
But thanks for your suggestion. Now I manage it all by creating a rect object, just before button listener close, so that it appear on top of everything and it is removed with removeself upon hit…
Thank you again,
Appu.