mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 18:37:43 +08:00
Feature:按住根节点也可以拖动画布
This commit is contained in:
parent
c8f938dd3e
commit
6ecb97e4e5
@ -672,11 +672,15 @@ class Node {
|
||||
this.active(e)
|
||||
})
|
||||
this.group.on('mousedown', e => {
|
||||
e.stopPropagation()
|
||||
if (!this.isRoot) {
|
||||
e.stopPropagation()
|
||||
}
|
||||
this.mindMap.emit('node_mousedown', this, e)
|
||||
})
|
||||
this.group.on('mouseup', e => {
|
||||
e.stopPropagation()
|
||||
if (!this.isRoot) {
|
||||
e.stopPropagation()
|
||||
}
|
||||
this.mindMap.emit('node_mouseup', this, e)
|
||||
})
|
||||
this.group.on('mouseenter', e => {
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
## 0.4.5
|
||||
|
||||
New: Supports associative lines.
|
||||
New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node.
|
||||
|
||||
## 0.4.4
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.4.5</h2>
|
||||
<p>New: Supports associative lines.</p>
|
||||
<p>New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node.</p>
|
||||
<h2>0.4.4</h2>
|
||||
<p>New: Support horizontal scrolling in response to the mouse.</p>
|
||||
<h2>0.4.3</h2>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
## 0.4.5
|
||||
|
||||
新增:支持关联线。
|
||||
新增:1.支持关联线。 2.按住根节点也可以拖动画布。
|
||||
|
||||
## 0.4.4
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.4.5</h2>
|
||||
<p>新增:支持关联线。</p>
|
||||
<p>新增:1.支持关联线。 2.按住根节点也可以拖动画布。</p>
|
||||
<h2>0.4.4</h2>
|
||||
<p>新增:支持响应鼠标的横向滚动。</p>
|
||||
<h2>0.4.3</h2>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user