I am using d3 v5.16 , mouse pointer is synchronize with crosshair annotation pointer by using d3.mouse. They move together .
var coordinates = d3.mouse(this);