mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: update cursorButton once freedraw is released (#4996)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
9ba7ca3845
commit
880e4feede
4 changed files with 9 additions and 12 deletions
|
@ -39,6 +39,7 @@ export const actionFinalize = register({
|
|||
: undefined,
|
||||
appState: {
|
||||
...appState,
|
||||
cursorButton: "up",
|
||||
editingLinearElement: null,
|
||||
},
|
||||
commitToHistory: true,
|
||||
|
@ -140,6 +141,7 @@ export const actionFinalize = register({
|
|||
elements: newElements,
|
||||
appState: {
|
||||
...appState,
|
||||
cursorButton: "up",
|
||||
activeTool:
|
||||
(appState.activeTool.locked ||
|
||||
appState.activeTool.type === "freedraw") &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue