Move scanning area as the position changes (fixes #6887)