src/ar-scene.js
/**
 * On window resize, update the perspective camera's aspect ratio,
 * and call `updateProjectionMatrix` so that we can get the latest
 * projection matrix provided from the device
 */
On window resize, update the perspective camera's aspect ratio,
and call `updateProjectionMatrix` so that we can get the latest
projection matrix provided from the device
On window resize update the perspective camera ' s aspect ratio and call ` updateProjectionMatrix ` so that we can get the latest projection matrix provided from the device
function addOnResizeHandler(camera, renderer) {
  window.addEventListener('resize', () => {
    camera.aspect = window.innerWidth / window.innerHeight;
    camera.updateProjectionMatrix();
    renderer.setSize(window.innerWidth, window.innerHeight);
  }, false);
}
function addOnResizeHandler ( camera , renderer ) { window . addEventListener ( 'resize' , ( ) => { camera . aspect = window . innerWidth / window . innerHeight ; camera . updateProjectionMatrix ( ) ; renderer . setSize ( window . innerWidth , window . innerHeight ) ; } , false ) ; }
On window resize, update the perspective camera's aspect ratio,
 and call `updateProjectionMatrix` so that we can get the latest
 projection matrix provided from the device
On window resize update the perspective camera ' s aspect ratio and call ` updateProjectionMatrix ` so that we can get the latest projection matrix provided from the device