Implementation of a double-scanning technique for studies of the Hanle effect in rubidium vapor