vslinko/obsidian-outliner

[BUG] Drag and Drop behaving inconsistently, works in one list, not in the other, second one breaks behaviour of the first one

EngineerMarek opened this issue · 0 comments

Using the plugin, I get widely inconsistent behaviour. On the same page, I have two different, long bulleted lists. In the first list (higher up on the page), the plugin behaves normally. In the second list, the plugin does not allow me to drag an drop at all. Shifting the bullets through the keyboard shortcut (Ctrl + Shift + UpArrow) works normally on both lists. After I try to move bullets in the second list, I am no longer able to move the bullets in the first list until I either scroll up far enough, or click the cursor into one of the list items.

To Reproduce

  1. Go to a note with two long bulleted lists. The structure is this:
    YAML Header
    h2
    short numbered list (1 and 2), in this, the plugin works
    h2
    h3
    long bulleted list 1
    h4
    short numbered list (1, 2, 3), in this, the plugin works
    h3
    long bulleted list 2

  2. Click on one of the bullets in long bulleted list 1 and drag, works normally

  3. Scroll down to long bulleted list 2, try to drag one bullet, nothing happens.

  4. Slightly scroll up until you see long bulleted list 1 again, and try to drag e.g. the last bullet. This time, nothing happens

  5. Scroll up far enough and try to drag the same bullet in long bulleted list 1 again, now it works

  6. Alternatively to scrolling up, try to click into the text of that bullet, now it works.

Expected behavior
All bullets should be draggable no matter what I do with the other lists, they should behave correctly independently of one another.

Screenshots

Environment (please complete the following information):

  • OS: Windows 10 Pro
  • Obsidian Version: v1.3.7, (installer version v1.3.5), using obsidian sync
  • Plugin Version: 4.8.0

Additional context
I recreated the same structure with mentioned above in another file, and no problems occurred when the content in each bullet was short. "long bulleted list" in the explanation above means something like this:
image
The screenshot shows long bulleted list 2, in which drag and drop does not work. The note was created before installing the plugin. restarting obsidian does not fix the issue.

I just tried copy-pasting the content into another file that was also created before the plugin was installed, and the bug did NOT occur.

Building a Second brain Live.md
This attachment is the file with the bug