Browse Source

Clear image layer on full redraw

master
A.Olokhtonov 2 years ago
parent
commit
1cc6144ea4
  1. 2
      client/recv.js

2
client/recv.js

@ -210,7 +210,9 @@ async function handle_message(d) { @@ -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) {

Loading…
Cancel
Save