mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
small fix - screen resize needs to refer to controls.screen sizes
This commit is contained in:
@@ -244,8 +244,8 @@
|
||||
camera.aspect = width / height;
|
||||
camera.updateProjectionMatrix();
|
||||
|
||||
camera.screen.width = width;
|
||||
camera.screen.height = height;
|
||||
controls.screen.width = width;
|
||||
controls.screen.height = height;
|
||||
|
||||
camera.radius = ( width + height ) / 4;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user