mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 06:48:49 +01:00
This commit is contained in:
parent
7ce2a52248
commit
bc5cc47f2b
1 changed files with 2 additions and 1 deletions
|
|
@ -962,6 +962,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
blockRender(protyle, targetElement);
|
||||
}
|
||||
}
|
||||
dragoverElement = undefined;
|
||||
}
|
||||
} else if (event.dataTransfer.getData(Constants.SIYUAN_DROP_FILE)?.split("-").length > 1
|
||||
&& targetElement && !protyle.options.backlinkData && targetElement.className.indexOf("dragover__") > -1) {
|
||||
|
|
@ -1117,7 +1118,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
} else if (contentRect) {
|
||||
const editorPosition = {
|
||||
left: contentRect.left + parseInt(editorElement.style.paddingLeft),
|
||||
right: contentRect.right - parseInt(editorElement.style.paddingRight)
|
||||
right: contentRect.left + protyle.contentElement.clientWidth - parseInt(editorElement.style.paddingRight)
|
||||
};
|
||||
if (event.clientX < editorPosition.left) {
|
||||
// 左侧
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue