diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index a9dc61af6..7373d3a69 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -519,7 +519,7 @@ export class Files extends Model { // 防止文档拖拽到笔记本外 !(!sourceOnlyRoot && targetType === "navigation-root")) { const nodeRect = liElement.getBoundingClientRect(); - const dragHeight = nodeRect.height * .36; + const dragHeight = nodeRect.height * .2; if (targetType === "navigation-root" && sourceOnlyRoot) { if (event.clientY > nodeRect.top + nodeRect.height / 2) { (liElement as HTMLElement).classList.add("dragover__bottom"); diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index 5e5a0b86f..b1afbe83a 100644 --- a/app/src/layout/dock/Outline.ts +++ b/app/src/layout/dock/Outline.ts @@ -274,7 +274,7 @@ export class Outline extends Model { return; } const selectRect = selectItem.getBoundingClientRect(); - const dragHeight = selectRect.height * .36; + const dragHeight = selectRect.height * .2; if (moveEvent.clientY > selectRect.bottom - dragHeight) { selectItem.classList.add("dragover__bottom"); } else if (moveEvent.clientY < selectRect.top + dragHeight) {