mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 11:28:49 +01:00
This commit is contained in:
parent
343bfb2757
commit
780e1a5bc6
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const getRightBlock = (element: HTMLElement, x: number, y: number) => {
|
|||
let index = 1;
|
||||
let nodeElement = element;
|
||||
if (nodeElement && nodeElement.classList.contains("protyle-action")) {
|
||||
return nodeElement.parentElement;
|
||||
return nodeElement;
|
||||
}
|
||||
while (nodeElement && (nodeElement.classList.contains("list") || nodeElement.classList.contains("li"))) {
|
||||
nodeElement = document.elementFromPoint(x + 73 * index, y) as HTMLElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue