Fix:修复只读模式下可以缩放图片的bug

This commit is contained in:
wanglin2 2023-07-15 15:26:57 +08:00
parent a63a92c423
commit d6181591c5

View File

@ -47,7 +47,7 @@ class NodeImgAdjust {
// 节点图片鼠标移动事件
onNodeImgMousemove(node, img) {
// 如果当前正在拖动调整中那么直接返回
if (this.isMousedown || this.isAdjusted) return
if (this.isMousedown || this.isAdjusted || this.mindMap.opt.readonly) return
// 如果在当前节点内移动,以及自定义元素已经是显示状态,那么直接返回
if (this.node === node && this.isShowHandleEl) return
// 更新当前节点信息