|
Posted by Andy Dingley on 10/10/15 11:47
shard wrote:
> My problem is that I have a <ul> with some <li>s in it, when I move
> between the <li>s
> I get a mouseout event, as I would expect, but the event.toElement is
> the document.body, not the ul?
So what's the problem? What are you doing with a .toElement property
that requires it to be accurately located in a page element, or where
you can't just assume it explicitly.
I can't think of a use for .toElement that isn't tightly coupled to
notions of physical page layout (which it's probably accurate for). If
you're using it to reset some menu-related highlighting function then
you can assume it as the parent menu, you don't need to know where the
mouse actually ended up.
Navigation:
[Reply to this message]
|