Microsoft/vscode
View on GitHubClicking inside editor and releasing the mouse button on a link outside activates the link (web/monaco)
Open
#199,477 opened on Nov 29, 2023
bugeditor-corehelp wanted
Repository metrics
- Stars
- (74,848 stars)
- PR merge metrics
- (Avg merge 11h 43m) (1,000 merged PRs in 30d)
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: vscode.dev
- OS Version: Win10 / Firefox
Steps to Reproduce:
- Go to vscode.dev
- Open an editor
- Click somewhere in the editor (e.g. to select a bunch of text) and keep the mouse button pressed
- Move the mouse pointer over something outside the editor, e.g. the "Read the announcement" header
- 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...