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