From 30a370cfe0a721b3c7ee2e9c2e8c94f64afa4f88 Mon Sep 17 00:00:00 2001 From: dongqing Date: Thu, 5 Dec 2019 10:20:03 +0800 Subject: [PATCH] =?UTF-8?q?init=20dance=20=E6=9C=9F=E9=97=B4=E7=A6=81?= =?UTF-8?q?=E6=8E=89=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- painter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/painter.js b/painter.js index 3d35aec..c4ba770 100644 --- a/painter.js +++ b/painter.js @@ -615,6 +615,7 @@ Component({ }, initDancePalette() { + this.isDisabled = true; this.initScreenK(); this.downloadImages(this.properties.dancePalette).then((palette) => { this.currentPalette = palette @@ -635,6 +636,7 @@ Component({ this.topContext || (this.topContext = wx.createCanvasContext('top', this)); this.globalContext || (this.globalContext = wx.createCanvasContext('k-canvas', this)); new Pen(this.bottomContext, palette).paint(() => { + this.isDisabled = false; this.triggerEvent('didShow'); }); this.globalContext.draw();