fix: 修复首次点击闪跳问题

This commit is contained in:
0JARVIS0 2019-11-28 10:32:20 +08:00
parent 4b84d813bd
commit a0e368f404

View File

@ -554,22 +554,22 @@ Component({
this.bottomContext || (this.bottomContext = wx.createCanvasContext('bottom', this));
this.topContext || (this.topContext = wx.createCanvasContext('top', this));
this.globalContext || (this.globalContext = wx.createCanvasContext('k-canvas', this));
new Pen(this.globalContext, palette).paint();
new Pen(this.bottomContext, palette).paint();
new Pen(this.globalContext, {
width,
height,
views: []
}).paint();
new Pen(this.frontContext, {
width,
height,
views: []
}).paint()
new Pen(this.bottomContext, {
width,
height,
views: []
}).paint()
}).paint();
new Pen(this.topContext, {
width,
height,
views: []
}).paint()
}).paint();
});
},