mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
improve cursor style when frame's locked
This commit is contained in:
parent
c43d9d44f0
commit
d9d1a3ab99
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue