Undesired text selection when opening links from editing modes (live preview, legacy)

Edit: this bug report was completely converted to feature request: Opening link should NOT create random text selection

Steps to reproduce

  • Create file A and fill it by sufficient amount of text to fill the screen area.
  • In some file B create link to file A
    First, for reference to see expected behavior:
  • Open in reading mode (rendered html) file B, that contains link file A
  • Position cursor over link.
  • Press down mouse button on the link
  • Move the cursor few pixels within tolerance so that cursor stays over the link and no attempt to drag is indicated. (That happens when we move cursor larger distance.)
  • Release the mouse button
  • the link target (file A) is opened upon release. This is consistent e.g. with behavior of links in Google Chrome and IMHO it works well.

Now see the issue in editing modes:

  • Open either in “Live Preview” or in “Legacy Editor” the file B that contains link.
  • Position cursor over link.
  • Press down Ctrl key (and hold it)
  • Press down mouse button on the link
  • In Obsidian v0.13.14, link immediately opens
  • Any slight movement of cusor places caret into text under cursor and text selection is initiated.

Expected result

During Ctrl+Click, mouse button being pressed down before opening link-target-file should not initiate selection in that file.
Proposed solution: instead of opening link when button is pressed down, link should rather open when mouse button is released. Just like in reading view except the requirement for modifier.

In practice the movement is not intended but is often hard or impossible to avoid.
People use diverse devices to control the cursor ( mouse, tablet pen, trackpoint, touchpad, camera,… ) so Ideally, the tolerated distance of cursor movement would be adjustable e.g. in some deeply buried setting or config file.

Actual result

Link opens when mouse button is pressed down which causes issues and is not consistent with behavior in “reading mode” and in other software.

Environment

  • Operating system: Windows 7

Sorry, I am not gonna take this as a bug. Open a feature request.

OK, here it is: Opening link should NOT create random text selection