Figured it out, pageX and pageY wont work if any parent is position absolute or relative because they are relative to the entire page, not the container. This just creates a container to wrap everything that is position absolute so we can use the d3.mouse coordinates.
Figured it out, pageX and pageY wont work if any parent is position absolute or relative because they are relative to the entire page, not the container. This just creates a container to wrap everything that is position absolute so we can use the
d3.mouse
coordinates.