Mouse events on a modal component


Is there any reason why the mouseUp/Down callbacks wouldn’t be called when a component (not a window) has its runModalLoop() method called?

My component seems to be ignoring mouse events, and I’ve been staring at this block of code now for about half hour and I can’t see what I’ve screwed up. :?


so, my hitTest was failing because the component I had attached my modal component to has an irregular shape, and I forgot to factor in that hitTests are propogated downwards. :roll:

carry on as you were.


ah yes.

the old spot-the-fucker-straight-after-posting syndrome.

quite susceptible to that myself.


Posted: 19 Jan 2006 03:38 pm

Posted: 19 Jan 2006 04:42 pm

Well, not exactly ‘straight’ after posting, more like “bugger this, I’m gonna have a beer, watch some smut, and get back to fixing crap when I can be arsed,” and then spotting the fucker right after I look at it.