-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Drag & drop failing on Obsidian 1.5.3 (Installer 1.5.3) #506
Comments
https://forum.obsidian.md/t/fix-for-drag-and-drop-functionality-in-outliner-plugin/76425?u=kadz Let me know if this helps! |
I have discovered something by accident - DnD seems to work properly when all outline nodes in the file are expanded. As soon as some are collapsed it stops working. See if this happens for you? |
Unfortunately, that doesn't appear to be the case for me. After running |
Yes, I tried it in some different files and found I couldn't repeat what I found before. There is something going on where it sometimes works, but I can't crack the case on exactly what that is. Frustrating as DnD is very helpful on the few occasions where it does work |
same here |
I'm experiencing the same issue. Has anyone tried the fix recommended by @imdadkadir ? |
I saw that but haevn't tried it only because DnD doesn't work even in cases where I don't have any front matter |
Sorry about that @charlie17 I wasn't looking carefully. I just submitted a PR to resolve this issue. |
I'm on v1.5.11, and the only way to get DnD to work, is if "Properties in Document" is set to "Source" (under Options - Editor - Display).
|
Same issue for me |
Hi @candideu did you try my patch above? |
@TonyDobbs I did. Based on your commit, I went to v.top = view.coordsAtPos(linePos, -1).top; and replaced it with this: const coords = view.coordsAtPos(linePos, -1);
const vTop = coords ? coords.top : 0;
v.top = vTop; Then I restarted Obsidian. Unfortunately, it's still not working for me... |
@candideu Ah I think the issue is that if you only update main.js you won't see the changes, because it's using a minified version. You will need to update the code in that file as well. |
@TonyDobbs Sorry in which file? I ended up combining your changes with the changes described in the forum post that was shared earlier in this thread in |
Hi @candideu My apologies, main.js was the correct file. I was mistaken. Based on your reply, it seems that you may have been using frontmatter. So there were 2 bugs to patch not one. I'm glad to hear you got it working! Hopefully both patches make it into the next release. |
Describe the bug
I'm unable to drag & drop using both Default and Minimal themes.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The item moves with the cursor
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: