reset to default tool after clearing out the canvas

This commit is contained in:
Ryan Di
2025-07-23 17:27:36 +10:00
parent c182115c92
commit 385cb347bb

View File

@ -121,7 +121,7 @@ export const actionClearCanvas = register({
pasteDialog: appState.pasteDialog,
activeTool:
appState.activeTool.type === "image"
? { ...appState.activeTool, type: "selection" }
? { ...appState.activeTool, type: app.defaultSelectionTool }
: appState.activeTool,
},
captureUpdate: CaptureUpdateAction.IMMEDIATELY,