The big black rectangle captures mouse events, but sits behind the yellow circles.
Notice how you're able to zoom and pan while the mouse is over the black rectangle. It doesn't work when you're over the circle since its on top of the rectangle.
https://d3js.org/d3.v4.min.js