If the user sets `minPolarAngle = 0`, it undoes what you have done here, so your "fix" does nothing. This is not a gimbal lock issue. EPS already keeps it away from the poles.