mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: DRY out and simplify setting active tool from toolbar (#7079)
This commit is contained in:
parent
12420592ef
commit
1f4f5e11ae
11 changed files with 116 additions and 165 deletions
|
@ -279,7 +279,7 @@ const LayerUI = ({
|
|||
appState={appState}
|
||||
interactiveCanvas={interactiveCanvas}
|
||||
activeTool={appState.activeTool}
|
||||
setAppState={setAppState}
|
||||
app={app}
|
||||
onImageAction={({ pointerType }) => {
|
||||
onImageAction({
|
||||
insertOnCanvasDirectly: pointerType !== "mouse",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue