Sir James smiled, and stroked his chin.
Sir James was stroking his chin while he smiled.