mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
fix: #158
This commit is contained in:
parent
e32147e1bf
commit
8fa8130d9d
@ -31,7 +31,7 @@ const StyledEditorWrapper = styled.div<{ isWidget: boolean }>`
|
|||||||
cursor: move;
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dragging {
|
.dragging, .dragging button {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ const GraphComponent = ({
|
|||||||
if (nodes.length > 8_000) return <ErrorView />;
|
if (nodes.length > 8_000) return <ErrorView />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledEditorWrapper isWidget={isWidget}>
|
<StyledEditorWrapper isWidget={isWidget} onContextMenu={e => e.preventDefault()}>
|
||||||
{loading && <Loading message="Painting graph..." />}
|
{loading && <Loading message="Painting graph..." />}
|
||||||
<TransformWrapper
|
<TransformWrapper
|
||||||
maxScale={2}
|
maxScale={2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user