Call pollScrollPosition() here and DRY.