Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perspective & ortho projections don't seem to update for canvas size when canvas not focused #155

Open
xeolabs opened this issue Sep 12, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@xeolabs
Copy link
Member

xeolabs commented Sep 12, 2023

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.

Screenshot from 2023-09-12 02-06-19

@xeolabs xeolabs changed the title Perspective & ortho projections don't seem to update for canvas size when canvas not focussed Perspective & ortho projections don't seem to update for canvas size when canvas not focused Sep 12, 2023
@xeolabs xeolabs added the bug Something isn't working label Sep 12, 2023
@xeolabs xeolabs added this to the 2.4.9 milestone Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant