Adjust the position of the hover details based on the dot position.