From 1cc6144ea4558aa8cd697ecf96a5cfb6dae4c989 Mon Sep 17 00:00:00 2001 From: "A.Olokhtonov" Date: Sun, 26 Mar 2023 01:15:53 +0300 Subject: [PATCH] Clear image layer on full redraw --- client/recv.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/recv.js b/client/recv.js index afd1284..236bec1 100644 --- a/client/recv.js +++ b/client/recv.js @@ -210,7 +210,9 @@ async function handle_message(d) { const event_count = des_u32(d); console.debug(`${event_count} events in init`); + storage.ctx0.clearRect(0, 0, storage.ctx0.canvas.width, storage.ctx0.canvas.height); + elements.images.innerHTML = ''; for (let i = 0; i < event_count; ++i) {