Microsoft/vscode

Clicking inside editor and releasing the mouse button on a link outside activates the link (web/monaco)

Open

#199,477 建立於 2023年11月29日

在 GitHub 查看
 (4 留言) (3 反應) (1 負責人)TypeScript (10,221 fork)batch import
bugeditor-corehelp wanted

倉庫指標

Star
 (74,848 star)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: vscode.dev
  • OS Version: Win10 / Firefox

Steps to Reproduce:

  1. Go to vscode.dev
  2. Open an editor
  3. Click somewhere in the editor (e.g. to select a bunch of text) and keep the mouse button pressed
  4. Move the mouse pointer over something outside the editor, e.g. the "Read the announcement" header
  5. Release the mouse button

Nothing should happen since links/buttons are not supposed to trigger just because you release the mouse button while hovering them. After all, the click did not target that link/button.

FWIW this but is VERY annoying when embedding monaco-editor on a webapp that has a navigation near the editor's left side. When selecting a block of I almost always end up with the cursor on the menu and thus leave the page...

貢獻者指南