fixes dom events if using svg renderer and nodes are nested dom elements