Skip to content

Commit 5b0cf55

Browse files
Properly setting currentTime variable value when detecting looping in update method
1 parent f832c35 commit 5b0cf55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ var HTML5AudioSound = new Class({
188188
var currentTime = this.audio.currentTime;
189189
if (currentTime >= endTime) {
190190
if (this.currentConfig.loop) {
191-
currentTime =
192-
this.audio.currentTime = startTime + (currentTime - endTime);
191+
this.audio.currentTime = startTime + (currentTime - endTime);
192+
currentTime = this.audio.currentTime;
193193
}
194194
else {
195195
this.reset();

0 commit comments

Comments
 (0)