diff --git a/ElectronJS/src/taskGrid/FlowChart.js b/ElectronJS/src/taskGrid/FlowChart.js index 3c2a565..6e5d2a9 100644 --- a/ElectronJS/src/taskGrid/FlowChart.js +++ b/ElectronJS/src/taskGrid/FlowChart.js @@ -562,6 +562,13 @@ function elementDragEnd(e) { e.stopPropagation(); } +function arrowDblClick(e) { + option = 13; //调整锚点操作 + app._data.nowArrow = { "position": this.getAttribute('position'), "pId": this.getAttribute('pId'), "num": 0 }; + toolBoxKernel.call(this, e); + e.stopPropagation(); +} + function arrowDragEnd(e) { option = 13; //调整锚点操作 toolBoxKernel.call(this, e); @@ -592,6 +599,8 @@ function bindEvents() { rule.addEventListener('click', arrowClick); rule.removeEventListener('mousedown', arrowMouseDown); rule.addEventListener('mousedown', arrowMouseDown); + rule.removeEventListener('dblclick', arrowDblClick); + rule.addEventListener('dblclick', arrowDblClick); rule.removeEventListener('dragover', arrowDragOver); rule.addEventListener('dragover', arrowDragOver); rule.removeEventListener('dragend', arrowDragEnd);