Переглянути джерело

small fix - screen resize needs to refer to controls.screen sizes

Andrew Strelzoff 14 роки тому
батько
коміт
485122a150
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      examples/webgl_trackballcamera_earth.html

+ 2 - 2
examples/webgl_trackballcamera_earth.html

@@ -244,8 +244,8 @@
 				camera.aspect = width / height;
 				camera.updateProjectionMatrix();
 
-				camera.screen.width = width;
-				camera.screen.height = height;
+				controls.screen.width = width;
+				controls.screen.height = height;
 
 				camera.radius = ( width + height ) / 4;