mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-11 05:18:58 +08:00
fix(editor): 画布缩放后,拖入组件位置错位
This commit is contained in:
parent
c307386190
commit
bdd544e87e
@ -158,8 +158,8 @@ const dropHandler = async (e: DragEvent) => {
|
|||||||
config.style = {
|
config.style = {
|
||||||
...style,
|
...style,
|
||||||
position,
|
position,
|
||||||
top,
|
top: top / zoom.value,
|
||||||
left,
|
left: left / zoom.value,
|
||||||
};
|
};
|
||||||
|
|
||||||
config.inputEvent = e;
|
config.inputEvent = e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user