They are both grammatically correct. but i would rephrase the second one "i love talking to you while we're hugging". and i think the first sentence, i think it doesn't have any meaning!
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.