We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I set the viewport for controls like this:
controls.setViewport(-camera.view.offsetX, -camera.view.offsetY, camera.view.fullWidth, camera.view.fullHeight)
But if I call fitToBox() it still fits to the whole canvas instead of my defined viewport.
How can I fix this?
Best
See above
No response
Object fits while using viewport offset
The text was updated successfully, but these errors were encountered:
Would you mind providing a simplified working example to help reproduce your issue?
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I set the viewport for controls like this:
controls.setViewport(-camera.view.offsetX, -camera.view.offsetY, camera.view.fullWidth, camera.view.fullHeight)
But if I call fitToBox() it still fits to the whole canvas instead of my defined viewport.
How can I fix this?
Best
To Reproduce
See above
Code
No response
Live example
No response
Expected behavior
Object fits while using viewport offset
Screenshots or Video
No response
Device
No response
OS
No response
Browser
No response
The text was updated successfully, but these errors were encountered: