Skip to content

Commit c1b24c4

Browse files
Preventing pause calls on delayed sounds
1 parent fb6b989 commit c1b24c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ var HTML5AudioSound = new Class({
6565
return true;
6666
},
6767
pause: function () {
68+
if (this.startTime > 0) {
69+
return false;
70+
}
6871
if (!BaseSound.prototype.pause.call(this)) {
6972
return false;
7073
}
@@ -209,9 +212,6 @@ Object.defineProperty(HTML5AudioSound.prototype, 'seek', {
209212
}
210213
},
211214
set: function (value) {
212-
if (this.startTime > 0) {
213-
return;
214-
}
215215
if (this.isPlaying || this.isPaused) {
216216
value = Math.min(Math.max(0, value), this.duration);
217217
if (this.isPlaying) {

0 commit comments

Comments
 (0)