They exchanged a quick greeting before heading off.
It was just a brief encounter, but they managed to exchange pleasantries.
Their casual interaction was brief but friendly.
He gave her a hasty salutation as he rushed past.
The drive-by handshake felt like an impersonal gesture.