mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 drag
This commit is contained in:
parent
e3c610aa3b
commit
af651215a9
3 changed files with 18 additions and 10 deletions
|
|
@ -423,8 +423,7 @@ export class Files extends Model {
|
|||
}
|
||||
let liElement = hasClosestByTag(event.target, "LI");
|
||||
if (!liElement) {
|
||||
liElement = document.elementFromPoint(event.clientX, event.clientY - 1) as HTMLElement;
|
||||
liElement = hasClosestByTag(liElement, "LI");
|
||||
liElement = hasClosestByTag(document.elementFromPoint(event.clientX, event.clientY - 1), "LI");
|
||||
}
|
||||
if (!liElement || !window.siyuan.dragElement) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue