Explorar o código

Merge pull request #18676 from Mugen87/dev11

Audio: Add missing sign in pause().
Michael Herzog %!s(int64=5) %!d(string=hai) anos
pai
achega
892ad919b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/audio/Audio.js

+ 1 - 1
src/audio/Audio.js

@@ -142,7 +142,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		if ( this.isPlaying === true ) {
 
-			this._pausedAt = Math.max( this.context.currentTime - this._startedAt, 0 ) * this.playbackRate;
+			this._pausedAt += Math.max( this.context.currentTime - this._startedAt, 0 ) * this.playbackRate;
 
 			this.source.stop();
 			this.source.onended = null;