mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10: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")) {
|
||||
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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue