antvis/G6
The issue has been closed
modes的type为drag-node时设置shouldEnd为false时第一次拖拽结束依然更新node的位置 #3173
qq591053991 posted onGitHub
<!-- ⚠️ ⚠️ ⚠️ 注意:请使用下面的链接来新建 issue: ⚠️ ⚠️ ⚠️ https://antv-issue-helper.surge.sh 不是用上面的链接创建的 issue 会被立即关闭。 -->
如题:当modes的type为drag-node时设置shouldEnd为false时第一次拖拽结束依然更新node的位置 关键代码:
modes: {
default: [
{
type: "drag-node",
shouldEnd: () => false
}
]
}
最小复现:https://codesandbox.io/s/friendly-meninsky-s7rxz?file=/index.js:4194-4677
<!-- ⚠️ ⚠️ ⚠️ IMPORTANT: Please use the following link to create a new issue: ⚠️ ⚠️ ⚠️ https://antv-issue-helper.surge.sh If your issue was not created by using the link above, it will be closed immediately. -->