fix(editor): 画布缩放后,拖入组件位置错位

This commit is contained in:
roymondchen 2022-09-06 16:04:44 +08:00 committed by jia000
parent c307386190
commit bdd544e87e

View File

@ -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;