Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Tencent/tmagic-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Jan 10, 2024
2 parents 6f7415e + 115123a commit 22e8ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/layouts/workspace/viewer/Stage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ const dropHandler = async (e: DragEvent) => {
if (parentEl && doc) {
const { left: parentLeft, top: parentTop } = getOffset(parentEl);
left = left - calcValueByFontsize(doc, parentLeft);
top = top - calcValueByFontsize(doc, parentTop);
left = left - calcValueByFontsize(doc, parentLeft) * zoom.value;
top = top - calcValueByFontsize(doc, parentTop) * zoom.value;
}
}
Expand Down

0 comments on commit 22e8ae4

Please sign in to comment.