Take scroll into account when saving position