latching and unlatching

Sc

My 3.5 month old has been latching and unlatching while he eats. I think sometimes he does this because my flow is not immediate like the bottle. But I also think sometimes he would rather look around and play than eat. I end up pumping a lot because he isn't eating on a regular schedule. Has anyone else delt with this?