mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-30 23:01:30 +01:00
disable drag when there's a magnified node
This commit is contained in:
parent
c187059c8f
commit
42cc9f5d18
@ -49,8 +49,8 @@
|
||||
--zindex-layout-last-magnified-node: 1;
|
||||
--zindex-layout-resize-handle: 2;
|
||||
--zindex-layout-placeholder-container: 3;
|
||||
--zindex-layout-magnified-node: 4;
|
||||
--zindex-layout-overlay-container: 5;
|
||||
--zindex-layout-overlay-container: 4;
|
||||
--zindex-layout-magnified-node: 5;
|
||||
--zindex-block-mask-inner: 10;
|
||||
|
||||
// z-indexes in xterm.css
|
||||
|
@ -183,11 +183,12 @@ const DisplayNode = ({ layoutModel, layoutNode, contents }: DisplayNodeProps) =>
|
||||
() => ({
|
||||
type: dragItemType,
|
||||
item: () => layoutNode,
|
||||
canDrag: () => !layoutModel?.treeState?.magnifiedNodeId,
|
||||
collect: (monitor) => ({
|
||||
isDragging: monitor.isDragging(),
|
||||
}),
|
||||
}),
|
||||
[layoutNode]
|
||||
[layoutNode, layoutGeneration]
|
||||
);
|
||||
|
||||
const [previewElementGeneration, setPreviewElementGeneration] = useState(0);
|
||||
|
Loading…
Reference in New Issue
Block a user