From dd7ce35490669b44ebc22f47764d7ed11d20d633 Mon Sep 17 00:00:00 2001 From: kongmoumou Date: Wed, 19 Oct 2022 21:54:53 +0800 Subject: [PATCH] fix(graph): draggable only work on force layout --- src/chart/graph/GraphView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chart/graph/GraphView.ts b/src/chart/graph/GraphView.ts index 0c6d1e01bc..d5f51eba4c 100644 --- a/src/chart/graph/GraphView.ts +++ b/src/chart/graph/GraphView.ts @@ -171,7 +171,7 @@ class GraphView extends ChartView { } }); } - el.setDraggable(draggable && !!forceLayout, !!itemModel.get('cursor')); + el.setDraggable(draggable, !!itemModel.get('cursor')); const focus = itemModel.get(['emphasis', 'focus']);