There is a simple task to drag svg group of elements with the correct initial cursor position. But faced with the following problem: at different radii of a circle on the onMouseDown on any element there is a jump. If the radii are everywhere equal, then everything works as it should. Can't understand what value I'm missing in the calculation of the displacement of the cursor, because the group size should increase along with the items inside.
Here is the code to understand what was going on: https://codepen.io/FLighter/pen/PowpjYB
Thanks in advance