mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 23:46:13 +01:00
🎨 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:
parent
0207316b7d
commit
00dda414db
2 changed files with 78 additions and 6 deletions
|
|
@ -18,5 +18,7 @@ export const cancelDrag = () => {
|
|||
}
|
||||
ghostElement.remove();
|
||||
document.onmousemove = null;
|
||||
// 通知取消拖拽,供相关模块停止滚动动画等
|
||||
window.dispatchEvent(new CustomEvent("drag-cancel"));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue