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 8ae5c1884e
commit d20984a508

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