mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Feat:鼠标右键单击画布时清除当前激活节点
This commit is contained in:
parent
e263eb8252
commit
75ad40ffbc
@ -127,6 +127,9 @@ class Render {
|
||||
this.mindMap.execCommand('CLEAR_ACTIVE_NODE')
|
||||
}
|
||||
})
|
||||
this.mindMap.on('contextmenu', () => {
|
||||
this.mindMap.execCommand('CLEAR_ACTIVE_NODE')
|
||||
})
|
||||
// 鼠标双击回到根节点
|
||||
this.mindMap.svg.on('dblclick', () => {
|
||||
if (!this.mindMap.opt.enableDblclickBackToRootNode) return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user