Hi,
I have multiple overlapping ccui.Layouts with ccui.Buttons in them. Now when I touch a button in the Layout on top sometimes the touch is also registered on the Button of Layout below:
Touch
|
Button in Layout 1 --> touchEventListener fires!
|
Button in Layout 2 --> touchEventListener fires!
It seems that this happens more when the buttons are very close together (similar x/y-position).
All buttons and layouts have .setSwallowTouches(true) enabled and the topmost layout has set a higher localZOrder. I would expect that the touch is swallowed by the topmost button.
What do I have to do to stop propagation of the touch? Or is this a known limitation?