fix: change cursor by tool change immediately (#8212)

pull/8897/merge
YongJoon Kim 3 weeks ago committed by GitHub
parent 2ac55067cd
commit c92f3bebf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4695,7 +4695,10 @@ class App extends React.Component<AppProps, AppState> {
if (nextActiveTool.type === "hand") { if (nextActiveTool.type === "hand") {
setCursor(this.interactiveCanvas, CURSOR_TYPE.GRAB); setCursor(this.interactiveCanvas, CURSOR_TYPE.GRAB);
} else if (!isHoldingSpace) { } else if (!isHoldingSpace) {
setCursorForShape(this.interactiveCanvas, this.state); setCursorForShape(this.interactiveCanvas, {
...this.state,
activeTool: nextActiveTool,
});
} }
if (isToolIcon(document.activeElement)) { if (isToolIcon(document.activeElement)) {
this.focusContainer(); this.focusContainer();

Loading…
Cancel
Save