That too is a solvable problem if you have the sensors for it. You can critically damp or choose a motion profile to have essentially no swing.