1
0
mirror of synced 2026-03-24 03:38:34 +08:00
This commit is contained in:
roymondchen
2024-01-10 16:41:54 +08:00

View File

@@ -210,8 +210,8 @@ const dropHandler = async (e: DragEvent) => {
if (parentEl && doc) {
const { left: parentLeft, top: parentTop } = getOffset(parentEl);
left = left - calcValueByFontsize(doc, parentLeft);
top = top - calcValueByFontsize(doc, parentTop);
left = left - calcValueByFontsize(doc, parentLeft) * zoom.value;
top = top - calcValueByFontsize(doc, parentTop) * zoom.value;
}
}