Skip to content

Commit

Permalink
playground: fix flickering block on switch levels
Browse files Browse the repository at this point in the history
  • Loading branch information
draedful committed Oct 9, 2024
1 parent 6da0193 commit 3a46780
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stories/Playground/GravityBlock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ export class GravityBlock extends CanvasBlock<TGravityBlock> {
})
}

public renderDetailedView(ctx: CanvasRenderingContext2D) {
// This needs to prevent flickering of block on switch levels
this.renderBody(ctx);
}

public renderSchematicView(ctx: CanvasRenderingContext2D) {
this.renderBody(ctx);
Expand Down

0 comments on commit 3a46780

Please sign in to comment.