Merge pull request #2309 from cocos-creator/pandamicro-patch-1

Fix WECHAT_GAME check issue
This commit is contained in:
pandamicro
2018-02-07 09:47:44 +08:00
committed by GitHub
+1 -1
View File
@@ -360,7 +360,7 @@ var WebAudioElement = function (buffer, audio) {
var self = this;
clearTimeout(this._currextTimer);
this._currextTimer = setTimeout(function () {
if (sys.platform === sys.WECHAT_GAME && self._context.currentTime === 0) {
if (sys.platform !== sys.WECHAT_GAME && self._context.currentTime === 0) {
touchPlayList.push({
instance: self._audio,
offset: offset,