🎨 Improve automatic scrolling when dragging items in the outline (#16161)

fix https://github.com/siyuan-note/siyuan/pull/15846#issuecomment-3420412057
This commit is contained in:
Jeffrey Chen 2025-10-20 20:58:59 +08:00 committed by GitHub
parent 0207316b7d
commit 00dda414db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 78 additions and 6 deletions

View file

@ -18,5 +18,7 @@ export const cancelDrag = () => {
}
ghostElement.remove();
document.onmousemove = null;
// 通知取消拖拽,供相关模块停止滚动动画等
window.dispatchEvent(new CustomEvent("drag-cancel"));
}
};