Vanessa 2025-07-02 17:33:16 +08:00
parent 68943ed5d5
commit 434e8174fa

View file

@ -859,7 +859,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
cloneItem.querySelector(".av__gallery-fields").setAttribute("style", "background-color: var(--b3-theme-background)");
ghostElement.append(cloneItem);
});
ghostElement.setAttribute("style", "position:fixed;opacity:.1;padding:0;");
ghostElement.setAttribute("style", "top:100vh;position:fixed;opacity:.1;padding:0");
document.body.append(ghostElement);
event.dataTransfer.setDragImage(ghostElement, -10, -10);
setTimeout(() => {