When the mouse hovers into the inner element, the mouseOut
event for the outer element is fired first, then the mouseOver
element for inner element is fired, then the mouseOver
element for the inner element is fired last.
Why does this happen? Because the inner element technically is still inside of the outer element, so the mouse doesn't leave the outer element when it moves into the inner element. Is there a way to prevent that?
Full example here: http://jsfiddle.net/pMCeu/4/