Skip to content

Commit

Permalink
closes dataarts#54 - Issue with globe disappearing on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Colton Savage authored and Colton Savage committed Jul 6, 2016
1 parent 2d24ba3 commit 5602547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions globe/globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ DAT.Globe = function(container, opts) {
}

function onWindowResize( event ) {
camera.aspect = container.offsetWidth / container.offsetHeight;
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize( container.offsetWidth, container.offsetHeight );
renderer.setSize( window.innerWidth, window.innerHeight );
}

function zoom(delta) {
Expand Down

1 comment on commit 5602547

@premkishan2009
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issue but it seems that the current globe.js doesn't have this change.

Please sign in to comment.