mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-24 09:02:10 +08:00
Merge branch 'master' of https://github.com/Tencent/tmagic-editor
This commit is contained in:
commit
22e8ae47f1
@ -210,8 +210,8 @@ const dropHandler = async (e: DragEvent) => {
|
|||||||
|
|
||||||
if (parentEl && doc) {
|
if (parentEl && doc) {
|
||||||
const { left: parentLeft, top: parentTop } = getOffset(parentEl);
|
const { left: parentLeft, top: parentTop } = getOffset(parentEl);
|
||||||
left = left - calcValueByFontsize(doc, parentLeft);
|
left = left - calcValueByFontsize(doc, parentLeft) * zoom.value;
|
||||||
top = top - calcValueByFontsize(doc, parentTop);
|
top = top - calcValueByFontsize(doc, parentTop) * zoom.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user