Add pan direction to auto_pan