You are right, and your sister is half-right! Both your examples are grammatically correct. "While" can have either a 'temporal duration' meaning, or a 'contrastive' one: "They insisted on talking while I was trying to do my homework".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.