canvas: style caching regression (always do it on resize)
This commit is contained in:
parent
8ae5c1884e
commit
d20984a508
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