From a9a3c3c2a240eb219f74ba5f99ebad7c73e7d740 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 17:20:44 +0100 Subject: [PATCH] Using checkTouchLocked with mute property --- src/sound/html5/HTML5AudioSound.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 1a0770068..3baf58ff3 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -294,6 +294,9 @@ Object.defineProperty(HTML5AudioSound.prototype, 'mute', { }, set: function (value) { this.currentConfig.mute = value; + if (this.checkTouchLocked('property', 'mute', value)) { + return; + } this.setMute(); this.emit('mute', this, value); }