We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f6aae commit 006516eCopy full SHA for 006516e
globe/globe.js
@@ -563,9 +563,9 @@ DAT.Globe = function(container, opts) {
563
564
function onWindowResize( event ) {
565
// if (pinchZoomEnabled) {
566
- camera.aspect = container.offsetWidth / container.offsetHeight;
+ camera.aspect = window.innerWidth / window.innerHeight;
567
camera.updateProjectionMatrix();
568
- renderer.setSize( container.offsetWidth, container.offsetHeight );
+ renderer.setSize( window.innerWidth, window.innerHeight );
569
// }
570
}
571
0 commit comments