Explorar o código

Issue #805: camera rotation timeout 500ms

cycle20 hai 1 ano
pai
achega
ed22cb0e12
Modificáronse 1 ficheiros con 2 adicións e 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);