fix(player): fix initial visual offset jump

This commit is contained in:
nick-delirium 2023-03-31 16:38:05 +02:00
parent 26bd4a7bea
commit 2283875043

View file

@ -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;