From 3a4678084b0ca7cad30bd2561ca189ffcaf512c0 Mon Sep 17 00:00:00 2001 From: draedful Date: Thu, 10 Oct 2024 02:20:38 +0300 Subject: [PATCH] playground: fix flickering block on switch levels --- src/stories/Playground/GravityBlock/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stories/Playground/GravityBlock/index.tsx b/src/stories/Playground/GravityBlock/index.tsx index 01cf632..0fbc49b 100644 --- a/src/stories/Playground/GravityBlock/index.tsx +++ b/src/stories/Playground/GravityBlock/index.tsx @@ -108,6 +108,10 @@ export class GravityBlock extends CanvasBlock { }) } + public renderDetailedView(ctx: CanvasRenderingContext2D) { + // This needs to prevent flickering of block on switch levels + this.renderBody(ctx); + } public renderSchematicView(ctx: CanvasRenderingContext2D) { this.renderBody(ctx);