Explorar el Código

Audio: Add missing sign in pause().

Mugen87 hace 6 años
padre
commit
7f242ab8be
Se han modificado 1 ficheros con 1 adiciones y 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;

粤ICP备19079148号