Skip to content

Commit 5939d41

Browse files
authored
Merge pull request #3438 from VisualSJ/develop-webaudio
Need to listen the touch event
2 parents acea1a6 + 43d387d commit 5939d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/audio/CCAudio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ cc.Audio = cc.Class.extend({
122122
cc.Audio.touchPlayList.push({ loop: loop, offset: offset, audio: this._element });
123123
}
124124

125-
if (cc.Audio.bindTouch === false && this._element.paused) {
125+
if (cc.Audio.bindTouch === false) {
126126
cc.Audio.bindTouch = true;
127127
// Listen to the touchstart body event and play the audio when necessary.
128128
cc.game.canvas.addEventListener('touchstart', cc.Audio.touchStart);

0 commit comments

Comments
 (0)