mirror of
https://github.com/ninglg/light-mindmap.git
synced 2026-07-22 06:51:49 +00:00
fix: prevent node selection during drag
This commit is contained in:
parent
15a7678263
commit
8ee63cd4c7
1 changed files with 1 additions and 0 deletions
1
main.js
1
main.js
|
|
@ -850,6 +850,7 @@ class LightMindMapPlugin extends obsidian.Plugin {
|
|||
e.stopPropagation();
|
||||
if (el.isContentEditable) return;
|
||||
if (e.target.closest('.lmm-link')) return;
|
||||
if (overlay._lmmDragging) return;
|
||||
this._selectNode(overlay, node, true);
|
||||
});
|
||||
el.addEventListener('dblclick', (e) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue