mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-21 16:29:58 +02:00
improve cursor style when frame's locked
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user