mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: change cursor by tool change immediately (#8212)
This commit is contained in:
parent
2ac55067cd
commit
c92f3bebf5
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue