There are many variables....... yes AF on of course, don;t know about canon but with nikon there are different AF settings, 1 of which is for moving objects. Bet you have something similar. You should also shoot at a faster speed to stop the action until you get to the point where your panning exactly matches the object, then slowly begin slowing down the shutter.