handle case where offset changes during scroll (e.g. after scrolling past the top bar)