Skip to content

Commit

Permalink
credits to csavage1994
Browse files Browse the repository at this point in the history
from a pull request dataarts#55 devaart
  • Loading branch information
nitrogl committed Jun 18, 2020
1 parent 28f6aae commit 006516e
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 @@ -563,9 +563,9 @@ DAT.Globe = function(container, opts) {

function onWindowResize( event ) {
// if (pinchZoomEnabled) {
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 );
// }
}

Expand Down

0 comments on commit 006516e

Please sign in to comment.