Skip to content

Commit

Permalink
fix Leafer start()
Browse files Browse the repository at this point in the history
  • Loading branch information
leaferjs committed Nov 5, 2024
1 parent a50feb6 commit 3e06993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/display/src/Leafer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ export class Leafer extends Group implements ILeafer {
public start(): void {
clearTimeout(this.__startTimer)
if (!this.running && this.canvas) {
this.running = true
this.ready ? this.emitLeafer(LeaferEvent.RESTART) : this.emitLeafer(LeaferEvent.START)
this.__controllers.forEach(item => item.start())
if (!this.isApp) this.renderer.render()
this.running = true
}
}

Expand Down

0 comments on commit 3e06993

Please sign in to comment.