Prune unnecessary stuff in ensureScrollChange.