✅ Solved: [Help Needed] Preventing Click Events From Passing Through Overlapping UI Layers
Hi everyone, I’m running into a strange issue with click events and would really appreciate some guidance.
The Setup
I’m generating UI elements using List (for example, list items that sit behind other UI).
On top of these list items, I have a Tab Bar and also a Bottom Bar with buttons (e.g. “Confirm” or “Save”).
Visually, the Tab Bar and Bottom Bar are clearly rendered on top of the list items.
The Problem
Even though the Tab Bar and Bottom Bar buttons are on top, when I click them, the click event also goes through to the list items underneath.
So both the top button and the bottom list item respond to the click, which is very counterintuitive.
Expected Behavior
If the Tab Bar or Bottom Bar is on top, the click should be captured only by those buttons.
The click event should not pass through to the list items behind.
My Question
How can I set up the Tab Bar and Bottom Bar buttons so that:
They properly capture the click on their own layer,
And prevent click-through to the list items below?
Is there a way in Rive to control hit-testing / pointer blocking for overlapping UI components?
Or is there a recommended pattern to achieve this layering behavior?
Thanks in advance 🙏 This is important for building intuitive UI where buttons on top behave correctly without triggering underlying list items.