canvas: never draw if size is 0

This commit is contained in:
jean-emmanuel 2025-03-08 13:20:51 +01:00
parent 0e703d95e3
commit 3766767cb1

View file

@ -34,7 +34,9 @@ class CanvasQueue extends EventEmitter{
flush() {
for (var h in this.queue) {
this.queue[h].draw()
if (this.queue[h].width > 0 && this.queue[h].height > 0) {
this.queue[h].draw()
}
}
this.queue = {}