mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Encapsulate SceneHistory. A little. (#1016)
This commit is contained in:
parent
46e619d800
commit
dc618ab122
2 changed files with 9 additions and 12 deletions
|
@ -2432,10 +2432,7 @@ export class App extends React.Component<any, AppState> {
|
|||
this.broadcastSceneUpdate();
|
||||
}
|
||||
|
||||
if (history.isRecording()) {
|
||||
history.pushEntry(this.state, globalSceneState.getAllElements());
|
||||
history.skipRecording();
|
||||
}
|
||||
history.record(this.state, globalSceneState.getAllElements());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue