Parcourir la source

finalize to default selection tool

Ryan Di il y a 1 mois
Parent
commit
edc894fd04
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/excalidraw/actions/actionFinalize.tsx

+ 2 - 2
packages/excalidraw/actions/actionFinalize.tsx

@@ -240,13 +240,13 @@ export const actionFinalize = register({
     if (appState.activeTool.type === "eraser") {
       activeTool = updateActiveTool(appState, {
         ...(appState.activeTool.lastActiveTool || {
-          type: "selection",
+          type: app.defaultSelectionTool,
         }),
         lastActiveToolBeforeEraser: null,
       });
     } else {
       activeTool = updateActiveTool(appState, {
-        type: "selection",
+        type: app.defaultSelectionTool,
       });
     }