Rotating Camera Causes Sprite Anomaly

My game is a 2d sprite based game where I sometimes need to continually rotate the camera around the z-axis (transform.rotation.eulerAngles.z) while focusing on a certain sprite object.

When the camera rotations transitions through 180-degrees, the sprites in the camera frame appear to flip on their x-axis which is very noticeable.

Any clues as to what is happening there?

I figured it out myself.

The eulerAngles.y was going to 180 and back to 0 for some strange reason. I think it’s because I was setting the camera’s transform.up from a calculated vector instead of directly controlling the eulerAngles.z

Thanks anyways!