12-07-2010 03:17 PM - edited 12-07-2010 03:19 PM
Is there a way to get a specific container to report mouse begin/move/end events rather than the whole screen? I've noticed that if I add event listeners to a container, only when the mouse moves within the margin area do events actually get reported.
So in psuedocode:
new container1 with thick margins (20,20,20,20)
new container2 with thick margins (20,20,20,20)
If I do this instead
Then mouse events are reported on the whole screen. But that's not what I want. I only want to capture events within a specific container. It seems the events are reported opposite to what I expect. It's reporting movement on the margins rather than the empty space in between.
I attached an image to demonstrate what I mean....
Any idea why the container does this?
I'd also like to put images inside the empty space but still have mouse movements reported.
12-07-2010 03:32 PM