Skip to content

Commit 006516e

Browse files
committed
credits to csavage1994
from a pull request dataarts#55 devaart
1 parent 28f6aae commit 006516e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

globe/globe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,9 @@ DAT.Globe = function(container, opts) {
563563

564564
function onWindowResize( event ) {
565565
// if (pinchZoomEnabled) {
566-
camera.aspect = container.offsetWidth / container.offsetHeight;
566+
camera.aspect = window.innerWidth / window.innerHeight;
567567
camera.updateProjectionMatrix();
568-
renderer.setSize( container.offsetWidth, container.offsetHeight );
568+
renderer.setSize( window.innerWidth, window.innerHeight );
569569
// }
570570
}
571571

0 commit comments

Comments
 (0)