Possible to stop clicks on child propagating to parent?


#1

Hi all. I’m making a custom component which must respond to clicks (& drags), but which contains several other custom components, which must also independently respond to clicks etc. Is there a way to stop clicks/drags on the child components calling mouseDrag etc. on the parent?


#2

But clicks on child components don’t propagate to their parents (?)


#3

Duh, I’m being an idiot. I’m using an MVC model, and I’d registered a controller as a MouseListener of the parent. There was a spurious ‘true’ for wantsEventsForAllNestedChildComponents when I added the listener. Thanks :oops: