canvas: never draw if size is 0
This commit is contained in:
parent
0e703d95e3
commit
3766767cb1
1 changed files with 3 additions and 1 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue