Virtual whiteboard for sketching hand-drawn like diagrams
fix: change cursor by tool change immediately (#8212)
YongJoon Kimc92f3bebf5fc
diff --git a/packages/excalidraw/components/App.tsx b/packages/excalidraw/components/App.tsxindex d2069a17f5..7a19eeee05 100644--- a/packages/excalidraw/components/App.tsx+++ b/packages/excalidraw/components/App.tsx@@ -4695,7 +4695,10 @@ class App extends React.Component<AppProps, AppState> {if (nextActiveTool.type === "hand") {setCursor(this.interactiveCanvas, CURSOR_TYPE.GRAB);} else if (!isHoldingSpace) {- setCursorForShape(this.interactiveCanvas, this.state);+ setCursorForShape(this.interactiveCanvas, {+ ...this.state,+ activeTool: nextActiveTool,+ });}if (isToolIcon(document.activeElement)) {this.focusContainer();