mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(editor): 画布缩放后,拖入组件位置错位
This commit is contained in:
parent
c307386190
commit
bdd544e87e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user