Don't trigger `replaceState` until scrolling stops.