canvas: style caching regression (always do it on resize)
This commit is contained in:
parent
3898e0926e
commit
2999aa7d25
1 changed files with 3 additions and 4 deletions
|
|
@ -113,10 +113,9 @@ class Canvas extends Widget {
|
|||
this.ctx.scale(ratio, ratio)
|
||||
}
|
||||
|
||||
if (!this.visible || checkColors) {
|
||||
this.visible = true
|
||||
this.cacheCanvasStyle()
|
||||
}
|
||||
this.cacheCanvasStyle(style)
|
||||
|
||||
if (!this.visible) this.visible = true
|
||||
|
||||
requestAnimationFrame(this.draw.bind(this))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue