浏览代码

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;