mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
e40fe2f8b8
commit
225ebc5dce
2 changed files with 2 additions and 2 deletions
|
|
@ -519,7 +519,7 @@ export class Files extends Model {
|
||||||
// 防止文档拖拽到笔记本外
|
// 防止文档拖拽到笔记本外
|
||||||
!(!sourceOnlyRoot && targetType === "navigation-root")) {
|
!(!sourceOnlyRoot && targetType === "navigation-root")) {
|
||||||
const nodeRect = liElement.getBoundingClientRect();
|
const nodeRect = liElement.getBoundingClientRect();
|
||||||
const dragHeight = nodeRect.height * .36;
|
const dragHeight = nodeRect.height * .2;
|
||||||
if (targetType === "navigation-root" && sourceOnlyRoot) {
|
if (targetType === "navigation-root" && sourceOnlyRoot) {
|
||||||
if (event.clientY > nodeRect.top + nodeRect.height / 2) {
|
if (event.clientY > nodeRect.top + nodeRect.height / 2) {
|
||||||
(liElement as HTMLElement).classList.add("dragover__bottom");
|
(liElement as HTMLElement).classList.add("dragover__bottom");
|
||||||
|
|
|
||||||
|
|
@ -274,7 +274,7 @@ export class Outline extends Model {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const selectRect = selectItem.getBoundingClientRect();
|
const selectRect = selectItem.getBoundingClientRect();
|
||||||
const dragHeight = selectRect.height * .36;
|
const dragHeight = selectRect.height * .2;
|
||||||
if (moveEvent.clientY > selectRect.bottom - dragHeight) {
|
if (moveEvent.clientY > selectRect.bottom - dragHeight) {
|
||||||
selectItem.classList.add("dragover__bottom");
|
selectItem.classList.add("dragover__bottom");
|
||||||
} else if (moveEvent.clientY < selectRect.top + dragHeight) {
|
} else if (moveEvent.clientY < selectRect.top + dragHeight) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue