fix edge case with SVG event delegation