scrolling to centroid improved