Merge pull request #1087 from openreplay/player-fix
fix(player): fix initial visual offset jump
This commit is contained in:
commit
1aa0fe682a
1 changed files with 4 additions and 1 deletions
|
|
@ -470,7 +470,10 @@ export default class MessageManager {
|
|||
default:
|
||||
switch (msg.tp) {
|
||||
case MType.CreateDocument:
|
||||
if (!this.firstVisualEventSet) this.state.update({ firstVisualEvent: msg.time });
|
||||
if (!this.firstVisualEventSet) {
|
||||
this.state.update({ firstVisualEvent: msg.time });
|
||||
this.firstVisualEventSet = true;
|
||||
}
|
||||
this.windowNodeCounter.reset();
|
||||
this.performanceTrackManager.setCurrentNodesCount(this.windowNodeCounter.count);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue