"Nice talking to you" x ''Nice to talk to you''

Hi everybody!
I've got a little doubt about the use of the -ing in this sentence: "It was nice talking to/with you" and I'd be very thankful if you could help me. :-}
I've learnt that after adjectives we use 'to + the infinitive': Nice to meet you; It isn't easy to find a job; etc.
But I've seen people on the Internet using 'It was nice talking to you'. I'd like to know if there's a specific reason to use the -ing in this sentence or if there's any difference between 'adjective + talking to you' and 'adjective + to talk to you'.
Thanks in advance.

MELHORE SUA PRONÚNCIA EM INGLÊS
Nesta aula, o professor Adir Ferreira, autor do livro "A Chave do Aprendizado da Língua Inglesa", nos conta como se tornou um Expert em pronúncia e dá várias dicas para você se comunicar melhor em inglês. ACESSAR AULA
3 respostas
Ordenar por: Data
Donay Mendonça 25 137 1.7k
Desbloqueie 2 respostas agora e todos os dias
Ao se cadastrar, você ainda poderá fazer perguntas, marcar tópicos como favoritos, votar nas melhores dicas e muito mais.
CENTENAS DE EXPRESSÕES DO INGLÊS
Preparamos um plano de estudos para ajudar você a dominar centenas de palavras e expressões do inglês em tempo recorde. EXPERIMENTE AGORA