microsoft / microsoft/monaco-editor
[Bug] Click beyond last line while there is horizontal scroll selects part of the last line
Open
@alexdima is already working on this.
Since Jan 10, 2022.
bug
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Code
monaco.editor.create(document.getElementById('container'), {
value: "function hello() {\n\talert('Hello world!');\n} function hello() { alert('Hello world!'); } function hello() { alert('Hello world!'); }",
language: 'javascript'
});
Actual Behavior
- Click somewhere under the last line
- Part of the last line is selected, the scroll is moved.
Expected Behavior
- Click somewhere under the last line
- Cursor is set to the end of the last line (VSCode behaviour)
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.