From d9d1a3ab9913e266077f5119c74d39e937c26f01 Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Wed, 22 Nov 2023 18:28:57 +0800 Subject: [PATCH] improve cursor style when frame's locked --- src/components/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 7782bb96a..774e98715 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1137,7 +1137,10 @@ class App extends React.Component { overflow: f.id === this.state.editingFrame ? "visible" : "hidden", whiteSpace: "nowrap", 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 ? POINTER_EVENTS.disabled : POINTER_EVENTS.enabled,