Fix:修复拖拽画布和拖拽调整图片时会选中文字的问题
This commit is contained in:
parent
12dae210ef
commit
c967be2bc2
@ -29,8 +29,9 @@ class View {
|
|||||||
this.fit()
|
this.fit()
|
||||||
})
|
})
|
||||||
// 拖动视图
|
// 拖动视图
|
||||||
this.mindMap.event.on('mousedown', () => {
|
this.mindMap.event.on('mousedown', e => {
|
||||||
if (this.mindMap.opt.isDisableDrag) return
|
if (this.mindMap.opt.isDisableDrag) return
|
||||||
|
e.preventDefault()
|
||||||
this.sx = this.x
|
this.sx = this.x
|
||||||
this.sy = this.y
|
this.sy = this.y
|
||||||
})
|
})
|
||||||
|
|||||||
@ -154,6 +154,7 @@ class NodeImgAdjust {
|
|||||||
})
|
})
|
||||||
btnEl.addEventListener('mousedown', e => {
|
btnEl.addEventListener('mousedown', e => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
this.onMousedown(e)
|
this.onMousedown(e)
|
||||||
})
|
})
|
||||||
btnEl.addEventListener('mouseup', e => {
|
btnEl.addEventListener('mouseup', e => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user