fix(editor): 画布缩放后,拖入组件位置错位
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user