Two ways:
1) Stop down the lens so that you get a deeper depth of field (giving you more in focus), and / or
2) Use AF-C which should focus at the appropriate distance as you pan the camera around the room.
In days of old, they used manual focus to do this. I don't know if you are familiar with American football, but in the old days, the camera operators used manual focus to follow the ball as it flew through the air from the quareterback's hand to the receiver's hands. Look up the old school NFL films to see their manual focusing skills in action.
Now those were real cameramen.