improve cursor style when frame's locked
This commit is contained in:
parent
c43d9d44f0
commit
d9d1a3ab99
@ -1137,7 +1137,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
overflow: f.id === this.state.editingFrame ? "visible" : "hidden",
|
overflow: f.id === this.state.editingFrame ? "visible" : "hidden",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
textOverflow: "ellipsis",
|
textOverflow: "ellipsis",
|
||||||
cursor: CURSOR_TYPE.MOVE,
|
cursor:
|
||||||
|
!f.locked && this.state.activeTool.type === "selection"
|
||||||
|
? CURSOR_TYPE.MOVE
|
||||||
|
: this.interactiveCanvas?.style.cursor,
|
||||||
pointerEvents: this.state.viewModeEnabled
|
pointerEvents: this.state.viewModeEnabled
|
||||||
? POINTER_EVENTS.disabled
|
? POINTER_EVENTS.disabled
|
||||||
: POINTER_EVENTS.enabled,
|
: POINTER_EVENTS.enabled,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user