Scroll spy doesn't flicker when scrolling to last element.