re-scroll based on cursor