The tooltip and the clicks on the paths has an offset. When calculating the mouse position against the lines sections. The bbox is need to be used and not the original width/height