How to call the zoomonmesh method when the camera rotation angle changes

hello all:
I have a large-scale model. When I double-click the mesh, I need to enlarge the mesh. Now most of my work has been completed, but there is a problem. Use ZoomOnMesh method after the camera rotation angle changes . There will be some abnormal situations. How to call the zoomonmesh method when the camera rotation angle changes?

The questions are as follows:

I assume you mean zoomOnMesh from the framing behavior?

Can you reproduce this on playground?

Hello just checking in, are you still having issues? Can you provide us with a Playground repro? @ShareQiu1994