mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Fix:修复拖拽画布和拖拽调整图片时会选中文字的问题
This commit is contained in:
@@ -29,8 +29,9 @@ class View {
|
||||
this.fit()
|
||||
})
|
||||
// 拖动视图
|
||||
this.mindMap.event.on('mousedown', () => {
|
||||
this.mindMap.event.on('mousedown', e => {
|
||||
if (this.mindMap.opt.isDisableDrag) return
|
||||
e.preventDefault()
|
||||
this.sx = this.x
|
||||
this.sy = this.y
|
||||
})
|
||||
|
||||
@@ -154,6 +154,7 @@ class NodeImgAdjust {
|
||||
})
|
||||
btnEl.addEventListener('mousedown', e => {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
this.onMousedown(e)
|
||||
})
|
||||
btnEl.addEventListener('mouseup', e => {
|
||||
|
||||
Reference in New Issue
Block a user