There is a construction in English that has the form
<action> while <condition>.
The "condition" in this construction could be a simple adjective, a word form that serves as an adjective, or an entire descriptive phrase; generally, it would be something that would also fit in the blank in the sentence, "I was _______."
The condition applies to the person performing the action.
So we have such things as driving while intoxicated,
which means that the person doing the driving was intoxicated.
If you are sober and you are driving a car with a passenger who is intoxicated, you are not driving while intoxicated.
You are, however, driving while someone is intoxicated.
You could also drive while texting, although this is also dangerous and may be illegal.
Here it is implied that the person driving is also texting at the same time.
Driving while people are texting is a very different thing that people generally do not mind so much, as long as you aren't the one doing the texting.
In fact, you could drive while answering questions on StackExchange.
That's a very dangerous combination, I'm sure, although driving while people are answering questions on StackExchange is generally not considered so dangerous.