Skip to content

Commit

Permalink
feat: record freedraw tool selection to history (excalidraw#7949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrazator authored Apr 25, 2024
1 parent 4d83d1c commit 6e5aeb1
Show file tree
Hide file tree
Showing 4 changed files with 1,046 additions and 565 deletions.
5 changes: 5 additions & 0 deletions packages/excalidraw/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 6e5aeb1

Please sign in to comment.