Fix:修复编辑过节点文本后,再使用滚轮或快捷键缩放画布时上次被编辑的节点会进入编辑状态,以及思维导图快捷键会失效的问题
This commit is contained in:
parent
159a4a202c
commit
9b55d051dc
@ -187,7 +187,8 @@ export default class TextEdit {
|
|||||||
|
|
||||||
// 处理画布缩放
|
// 处理画布缩放
|
||||||
onScale() {
|
onScale() {
|
||||||
if (!this.currentNode) return
|
const node = this.getCurrentEditNode()
|
||||||
|
if (!node) return
|
||||||
if (this.mindMap.richText) {
|
if (this.mindMap.richText) {
|
||||||
this.mindMap.richText.cacheEditingText =
|
this.mindMap.richText.cacheEditingText =
|
||||||
this.mindMap.richText.getEditText()
|
this.mindMap.richText.getEditText()
|
||||||
@ -197,7 +198,7 @@ export default class TextEdit {
|
|||||||
this.showTextEdit = false
|
this.showTextEdit = false
|
||||||
}
|
}
|
||||||
this.show({
|
this.show({
|
||||||
node: this.currentNode,
|
node,
|
||||||
isFromScale: true
|
isFromScale: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user