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

This commit is contained in:
YongJoon Kim 2025-01-09 22:26:12 +09:00 committed by Mark Tolmacs
parent a12334e20d
commit 22ca55092b
No known key found for this signature in database

View file

@ -4687,7 +4687,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();