feat: record freedraw tool selection to history (#7949)

This commit is contained in:
Marcel Mraz 2024-04-25 18:24:05 +01:00 committed by GitHub
parent 4d83d1c91e
commit 6e5aeb112d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1022 additions and 541 deletions

View file

@ -4166,6 +4166,11 @@ class App extends React.Component<AppProps, AppState> {
originSnapOffset: null,
activeEmbeddable: null,
} as const;
if (nextActiveTool.type === "freedraw") {
this.store.shouldCaptureIncrement();
}
if (nextActiveTool.type !== "selection") {
return {
...prevState,