Updating scroll method.