canvas: style caching regression (always do it on resize)

This commit is contained in:
jean-emmanuel 2018-02-14 20:37:33 +01:00
parent 3898e0926e
commit 2999aa7d25

View file

@ -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))