Fix:修复节点右键和画布右键的冲突问题
This commit is contained in:
parent
2de0334e3b
commit
25ecde8948
@ -339,6 +339,9 @@ class Node {
|
|||||||
this.active(e)
|
this.active(e)
|
||||||
})
|
})
|
||||||
this.group.on('mousedown', e => {
|
this.group.on('mousedown', e => {
|
||||||
|
if (this.isRoot && e.which === 3) {
|
||||||
|
e.stopPropagation()
|
||||||
|
}
|
||||||
if (!this.isRoot) {
|
if (!this.isRoot) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user