Skip to content

Commit

Permalink
fix(editor): 画布缩放后,拖入组件位置错位
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed Sep 6, 2022
1 parent c307386 commit bdd544e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/layouts/workspace/Stage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ const dropHandler = async (e: DragEvent) => {
config.style = {
...style,
position,
top,
left,
top: top / zoom.value,
left: left / zoom.value,
};
config.inputEvent = e;
Expand Down

0 comments on commit bdd544e

Please sign in to comment.