Accepted answer

It sounds like the issue here is that the circles are receiving pointer events meant for the path beneath them. Assuming you don't need the circles to respond to mouse events, you can just set the style on the circles to pointer-events: none:

circle {
   pointer-events: none;

See a demo here: - if you remove pointer-events: none, you'll see that the rect no longer responds.

Related Query