When the function is connected to the onmouseover event for the SVG group <g>...</g> event occurs once, each time the pointer enters an element in the group.
This happens even if two elements in a group appear inside each other.
For instance:
+ ----- +
| A ___ |
| | B |
| __ | __ |
When the pointer enters rectangle A and from there moves to rectangle B without leaving A , onmouseover events are onmouseover for group G , which contains both A and B
An event occurs only once, so I do not think that this is due to the bubbling events.
I expected the group to be seen as a solid block, so I would not have to worry about my descendants when setting up my own events.
Any work around? Am I doing it right? Is there a better way?
source share