Skip to content

Commit 788043b

Browse files
committed
fix: 修复拖拽图片进入舞台之后,图片无法移动的问题
1 parent 71ef010 commit 788043b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/src/core/service/dataManageService/dragFileIntoStageEngine/dragFileIntoStageEngine.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export namespace DragFileIntoStageEngine {
109109

110110
project.stageManager.add(textNode);
111111
}
112+
project.stageManager.updateReferences();
112113
}
113114

114115
/**
@@ -150,6 +151,7 @@ export namespace DragFileIntoStageEngine {
150151

151152
project.stageManager.add(textNode);
152153
}
154+
project.stageManager.updateReferences();
153155
}
154156

155157
/**
@@ -277,6 +279,8 @@ export namespace DragFileIntoStageEngine {
277279
mouseSections[0].collisionBox.getRectangle(),
278280
),
279281
);
282+
} else {
283+
project.stageManager.updateReferences();
280284
}
281285
}
282286

@@ -295,6 +299,7 @@ export namespace DragFileIntoStageEngine {
295299
});
296300

297301
project.stageManager.add(textNode);
302+
project.stageManager.updateReferences();
298303
}
299304

300305
export async function handleDropSvg(project: Project, filePath: string) {
@@ -307,5 +312,6 @@ export namespace DragFileIntoStageEngine {
307312
attachmentId,
308313
});
309314
project.stageManager.add(entity);
315+
project.stageManager.updateReferences();
310316
}
311317
}

0 commit comments

Comments
 (0)