Merge pull request #198 from Kujiale-Mobile/heidao

fix: 修复首次点击闪跳问题
This commit is contained in:
Chris 2019-11-28 10:35:22 +08:00 committed by GitHub
commit 7180c0cac2

View File

@ -569,22 +569,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();
});
},