mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
fix: change cursor by tool change immediately (#8212)
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user