I’ve got a VGUI element which contains a child element. The child element fills the entire width and height of the parent.
The problem I’m having is that no mouse events ever get called on the parent - the mouse event is passed to the child rather than to both child and parent.
When the child is removed, the mouse events behave fine.
I’ve already thought of more than one way to fix this problem, such as overriding the mouse events in the child and passing them on to the parent, or making the child invisible but manually drawing it instead.
However, these aren’t perfect solutions and are pretty hacky, so I’d rather do it properly if it’s possible.