This example has a modified drag function so that when you zoom in, you're still able to drag the circles to the correct mouse location. Here's an example of the drag problem.
forked from puzzler10's block: d3v4 - zoom and drag circles - drag adjusted for zoom
forked from Thanaporn-sk's block: d3v4 - zoom and drag circles - drag adjusted for zoom
https://d3js.org/d3.v4.min.js