vslinko/obsidian-outliner

[BUG] Drag and Drop doesn't work in v1.7.6 version

Opened this issue · 4 comments

Describe the bug

It seems that Drag and Drop no longer works in the new version. I have tried it in different themes, including the original theme, but it doesn't work.

Expected behavior
works again

Screenshots
If applicable, add screenshots to help explain your problem.
截屏2024-11-13 上午9 36 37

Environment (please complete the following information):

  • OS: Macos
  • Obsidian Version: v1.7.6
  • Plugin Version: 4.8.1

Additional context
Add any other context about the problem here.

For me, it works on Window, but not on Mac.

same on Obsidian v1.7.7
plugin version 4.8.1

Yaml region
The problem is that once a file has a yaml area, it can't drag the nodes

I'm experiencing the same issue on Obsidian v1.7.7 with Outliner 4.8.1 on Windows and Linux.

Debug Mode Console Error:
image

Uncaught TypeError: Cannot read properties of null (reading 'left')
    at DragAndDropState.calculateLeftPadding (plugin:obsidian-outliner:1371:56)
    at new DragAndDropState (plugin:obsidian-outliner:1287:14)
    at DragAndDrop.startDragging (plugin:obsidian-outliner:1181:23)
    at DragAndDrop.handleMouseMove (plugin:obsidian-outliner:1098:22)
calculateLeftPadding @ plugin:obsidian-outliner:1371
DragAndDropState @ plugin:obsidian-outliner:1287
startDragging @ plugin:obsidian-outliner:1181
DragAndDrop.handleMouseMove @ plugin:obsidian-outliner:1098

Observed behavior:

  • No YAML Frontmatter: Working as expected ✅
  • YAML Frontmatter & Source Mode: Working as expected ✅
  • YAML Frontmatter & Live-Preview Mode: Not working ❌