xeokit-bim-viewer
xeokit-bim-viewer copied to clipboard
Perspective & ortho projections don't seem to update for canvas size when canvas not focused
In the screen capture below, I reload the BIMViewer in Chrome, but do not click on the canvas. Then I resize the window. The projection and orthographic projections are receiving the updated canvas boundaries, but don't seem to result in any visual updates.
Screencast from 12.09.2023 01:55:56.webm
However, if I click on the canvas, then subsequent window resizing does result in visual updates for the changing perspective and orthographic projections.
Screencast from 12.09.2023 02:08:56.webm
In both cases, we see in dev tools that the Perspective matrix is being rebuilt off the new canvas size. However the image aspect ration appears unaffected. All works fine if the canvas gets clicked on, then continues to work OK.