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

This commit is contained in:
Marcel Mraz
2024-04-25 17:24:05 +00:00
committed by GitHub
parent 4d83d1c91e
commit 6e5aeb112d
4 changed files with 1022 additions and 541 deletions
+5
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,