提交 7d7a6c72 编写于 作者: M Mugen87

Audio: Ensure paused audios start from the right position.

上级 d276dba3
......@@ -142,7 +142,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), {
if ( this.isPlaying === true ) {
this._pausedAt = ( this.context.currentTime - this._startedAt ) * this.playbackRate;
this._pausedAt = Math.max( this.context.currentTime - this._startedAt, 0 ) * this.playbackRate;
this.source.stop();
this.source.onended = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册