I’m currently working on a plugin related to dragging and dropping into obsidian documentation from the outside.
There is one issue that I’m having trouble with, so I’m asking for help.
I’ve noticed that the current drag and drop event only detects the cursor position when I leave the obsidian document, but actually selects the position again before I release the mouse while dragging. But currently when I select a new position, the position after dragging is still the cursor position when I left the obsidian document.
The exact situation is as follows
When leaving:
0000
(Cursor position when leaving the document)
1111
2222
When dragging and dropping:
0000
1111
(Drag and drop placement position)
2222
After release:
0000
(The content was dragged here, which is where the cursor was when you left the document)
1111
2222