Jon sat by her and ruffled her hair.
Jon was sitting next to her and ruffling her hair.