I have an iOS application structure in which I have one large parent component with a grid of child components on top of it. I’m experiencing some weird behavior with getComponentAt() that I wonder if anyone else has experienced so that I can decide where to invest most of my time (whether continued troubleshooting, checking JUCE updates, or redesigning my application hierarchy/GUI design). I have stepped through getComponentAt() and am having trouble pinpointing the weird behavior. JUCE version 7.0.5
The issue: When I mouseDrag on my layered components, I get inconsistent behavior. If mouseDown happens in the parent component, but NOT on one of the child components (i.e. mouseDown.originalComponent = parent), and then I drag the mouse into one of the children, then subsequent mouseDrag() events are correctly identified as being over the child (mouseDrag.getComponentAt(current position) = child). However, if I initially click inside a child component (i.e. mouseDown.originalComponent = child), then subsequent mouseDrags within the child component bounds are attributed to the parent underneath (i.e. mouseDrag.getComponentAt(current position) = parent). I am debating moving to some other Broadcaster/Listener model, but I’m wondering if anyone has any insight before I do a lot of work on my app architecture.
My goal is just to know which component is the top component (on the z-axis) under any given mouseDrag.
