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

Initial camera position/focal point not behaving as expected #96

Open
tamaynard opened this issue Jan 28, 2023 · 1 comment
Open

Initial camera position/focal point not behaving as expected #96

tamaynard opened this issue Jan 28, 2023 · 1 comment

Comments

@tamaynard
Copy link
Contributor

Attempting to set the initial camera position & focal point for the View component results in unexpected behavior. It appears as if the initial resetCamera call is overriding the provided camera properties. Attempting to set the camera position in user code manually after the component has been initialized results in a blank screen. Is this a bug, and if not is there any way to set set custom initial camera position/focal point on View initialization?

@floryst
Copy link
Collaborator

floryst commented Jan 30, 2023

Yes, that is unfortunately the case. One solution is to conditionally reset the camera if there isn't any specified camera props.

FYI I'm working on a react 18 upgrade that should address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants