From bdd544e87e7c4f4b227d65f3afd4de14af826e17 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 6 Sep 2022 16:04:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(editor):=20=E7=94=BB=E5=B8=83=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E5=90=8E=EF=BC=8C=E6=8B=96=E5=85=A5=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/layouts/workspace/Stage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/layouts/workspace/Stage.vue b/packages/editor/src/layouts/workspace/Stage.vue index 90e7c1bc..ab741ce0 100644 --- a/packages/editor/src/layouts/workspace/Stage.vue +++ b/packages/editor/src/layouts/workspace/Stage.vue @@ -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;