update the way we compute the position of the mouse for the tooltip