hookehuyr

fix 修复node节点拖动不顺畅的问题

......@@ -65,7 +65,7 @@ export function dragNode(G6) {
});
// 只拖动当前节点
if (dragNodes.length === 0) {
if (dragNodes.length === 1) {
this.target = item;
this.target.origin = {
x: item._cfg.model.x,
......@@ -111,7 +111,7 @@ export function dragNode(G6) {
graph.setAutoPaint(false);
// 当targets中元素时,则说明拖动的是多个选中的元素
if (this.targets.length > 0) {
if (this.targets.length > 1) {
if (this.enableDelegate) {
this._updateDelegate(e);
} else {
......