Skip to content

Commit 37b5c4a

Browse files
liuziqiboyongjiong
authored andcommitted
fix: 修复stopMoveGraph从true置为false后画布仍无法移动问题
1 parent 5ffdffd commit 37b5c4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/LogicFlow.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,11 @@ export default class LogicFlow {
788788
* @see todo docs link
789789
*/
790790
updateEditConfig(config: EditConfigInterface) {
791-
this.graphModel.editConfigModel.updateEditConfig(config);
791+
const { editConfigModel, transformModel } = this.graphModel;
792+
editConfigModel.updateEditConfig(config);
793+
if (config?.stopMoveGraph !== undefined) {
794+
transformModel.updateTranslateLimits(config.stopMoveGraph);
795+
}
792796
}
793797
/**
794798
* 获取流程图当前编辑相关设置

0 commit comments

Comments
 (0)