|
@@ -748,7 +748,9 @@ class NavCubeViewer extends ViewerBase{
|
|
|
this.renderer.render(this.scene, this.camera)
|
|
|
}
|
|
|
|
|
|
- update(delta){
|
|
|
+ update(delta){
|
|
|
+ if(this.renderArea.clientWidth <= 0) return //unvisible
|
|
|
+
|
|
|
this.updateScreenSize()
|
|
|
this.controls.update(delta)
|
|
|
this.view.applyToCamera(this.camera)
|