Vanessa 2025-02-08 19:23:58 +08:00
parent e40fe2f8b8
commit 225ebc5dce
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -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) {