The emitted photons travel slightly faster than the electrons and interact with them each undulator period.
The photons released by the source move slightly quicker than the electrons and interact with them at every undulator cycle.