Ux suggestion: reveal markup on mouseup instead of mousedown

When left clicking on rendered markup in the markdown editor, it currently reveals the markdown immediately on mousedown

This can result in some slightly annoying/unpredictable behavior, such as the resulting cursor location being inconsistent (e.g. left click at very end of link > sometimes cursor ends up at very end of link, sometimes it ends up in the middle of link), and can sometimes result in accidentally highlighting text.

If you compare to Typora, Typora doesn't reveal the markup until you release left-click, which avoids both of these issues (Obsidian works this way as well). The cursor moves to the click location on mousedown, and then the markup expands on mouseup (so while the cursor can technically move from the exact click location, it consistently ends up where you clicked from a semantic perspective, e.g. at the end of the link in the below examples).

This also applies in the inverse direction (e.g. cursor is currently inside some revealed markup > left click on some plain text, markup at previous cursor position doesn't go back to rendered until left click is released).

Examples:

Joplin:

joplin-example

Typora:

typora-example

That makes sense and would improve the UX. I've created this task to track this:

I'm not entirely sure this comes from this change, but I have an issue with the markup reveal for links on mobile.

On desktop, it works great where if you click inside the link, the mouse ends up inside the link text and when you click to the right, it lands to the right of the entire link. On mobile I can't get it to land to the right of the link anymore, so it always takes two movements to be able to add content after a link.

Here is a video showing the issue:

yeah I can confirm the same behavior on mobile in 3.7.3

Issue is here:

Thank you for trying the pre-releases!