Explorar el Código

Issue #805: camera rotation timeout 500ms

cycle20 hace 1 año
padre
commit
ed22cb0e12
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/examples/assembly-tm/tmdet-viewer/TmViewer.ts

+ 2 - 2
src/examples/assembly-tm/tmdet-viewer/TmViewer.ts

@@ -63,8 +63,8 @@ export class TmViewer extends Viewer {
             // INVALID DATA CELL: setTimeout(() => { this.plugin.clear(); }, 100); // clear scene after some delay
 
             setTimeout(() => { (async () => {
-                rotateCamera(this.plugin);
-            })(); }, 1000);
+                await rotateCamera(this.plugin);
+            })(); }, 500);
         });
 
         const result = super.loadStructureFromUrl(url, format, isBinary, config);