fix: first frame active state
This commit is contained in:
parent
53d6ef04b8
commit
40f3212efa
1 changed files with 2 additions and 1 deletions
|
|
@ -169,7 +169,8 @@ export class StrudelMirror {
|
||||||
try {
|
try {
|
||||||
await this.repl.evaluate(this.code, false);
|
await this.repl.evaluate(this.code, false);
|
||||||
this.drawer.invalidate(this.repl.scheduler);
|
this.drawer.invalidate(this.repl.scheduler);
|
||||||
this.onDraw?.(this.drawer.visibleHaps, 0, [], this.painters);
|
// draw at -0.001 to avoid haps at 0 to be visualized as active
|
||||||
|
this.onDraw?.(this.drawer.visibleHaps, -0.001, [], this.painters);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('first frame could not be painted');
|
console.warn('first frame could not be painted');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue