resize block visualization instantly on zoom

This commit is contained in:
Mononaut
2022-11-14 12:11:21 -06:00
parent 02820b0e68
commit 3654178c83
2 changed files with 27 additions and 15 deletions

View File

@@ -181,7 +181,7 @@ export class BlockOverviewGraphComponent implements AfterViewInit, OnDestroy, On
this.gl.viewport(0, 0, this.displayWidth, this.displayHeight);
}
if (this.scene) {
this.scene.resize({ width: this.displayWidth, height: this.displayHeight });
this.scene.resize({ width: this.displayWidth, height: this.displayHeight, animate: false });
this.start();
} else {
this.scene = new BlockScene({ width: this.displayWidth, height: this.displayHeight, resolution: this.resolution,