From e7b52bdbd9456b79f2891d0fa6ea4b2348c75940 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sun, 19 Jul 2026 11:10:48 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B5=D0=B3=D0=BE=20?= =?UTF-8?q?=D1=83=D1=80=D0=BE=D0=B2=D0=BD=D1=8F=20=D0=B2=20main.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 65c0f5c..e19c5b8 100644 --- a/src/main.js +++ b/src/main.js @@ -42,7 +42,7 @@ import { createGameView, rebuildBrickViews, syncronizeViewsWithGame } from './vi const game = new Game(LEVELS); const views = createGameView(game, container); - const currentLevel = game.currentLevel; + let currentLevel = game.currentLevel; container.on('pointermove', (event) => { const localPosition = container.toLocal(event.global); @@ -54,6 +54,7 @@ import { createGameView, rebuildBrickViews, syncronizeViewsWithGame } from './vi if (game.currentLevel !== currentLevel) { rebuildBrickViews(views, game, container); + currentLevel = game.currentLevel; } syncronizeViewsWithGame(views, game); });