mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: record freedraw tool selection to history (#7949)
This commit is contained in:
parent
4d83d1c91e
commit
6e5aeb112d
4 changed files with 1022 additions and 541 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue