antvis/G6
The issue has been closed
Unable to drag nodes around with allowDragOnItem #4194
jadenmazzone posted onGitHub
问题描述
When we have drag-node
and drag-canvas
with allowDragOnItem
, we are no longer able to drag the nodes around.
重现链接
None
重现步骤
If we have the below settings, we cannot drag around nodes, because we have set allowDragOnItem: true
. But without it, we would not be able to drag on edges. I think it would make sense to have allowDragOnItem
to accept an object that contains something like {combo: true, edge: true, node: true}
, so we are able to specify the exact behaviour.
In meantime is there a workaround to allow drag on edges, but not nodes so we are still able to drag around the nodes?
modes: {
default: [
"drag-node",
{
type: "drag-canvas",
allowDragOnItem: true,
},
]}
预期行为
I expected that we would still be able to drag the nodes around even with the settings.
平台
- "@antv/g6": "^4.7.0",
- Chrome
- Mac OS
屏幕截图或视频(可选)
No response
补充说明(可选)
No response