When using the Model Viewer Starter kit, there is code that checks the window resize, and changes the horizontalFov property based on whether the height is greater than the width ( so, a square comparison ).
This works fine.
If the content to be framed isn’t square, there is an issue.
I’ve set up a project here to show what’s happening.
If you run that scene, and resize the window until you’re about to touch the side of the plane object, you’ll notice that the horizontalFov is now based on an aspect ratio of the camera.
The switch to horizontalFov occurs correctly, but now there is a jump rather than a smooth transfer between the two. The code using horizontalFov must be assuming that the framed content is still square.
If anyone knows how to get this working, so that when the horizontalFov is flipped the transfer is visually seamless, that would be great!