We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7384d9a commit 60693d6Copy full SHA for 60693d6
1 file changed
src/sound/html5/HTML5AudioSound.js
@@ -174,8 +174,8 @@ var HTML5AudioSound = new Class({
174
if (this.isPlaying) {
175
// handling delayed playback
176
if (this.startTime > 0) {
177
- if (this.startTime < time) {
178
- this.audio.currentTime += (time - this.startTime) / 1000;
+ if (this.startTime < time - this.manager.audioPlayDelay) {
+ this.audio.currentTime += Math.max(0, time - this.startTime) / 1000;
179
this.startTime = 0;
180
this.previousTime = this.audio.currentTime;
181
this.audio.play();
0 commit comments