Skip to content

Fixes "Caret jumps to column 0 when clicking between first two characters" - #265131

Merged
Alexandru Dima (alexdima) merged 4 commits into
microsoft:mainfrom
ttttotem:only-fix-left-side
Sep 4, 2025
Merged

Alexandru Dima (alexdima) merged 4 commits into
microsoft:mainfrom
ttttotem:only-fix-left-side

Conversation

@ttttotem

@ttttotem ttttotem (ttttotem) commented Sep 4, 2025 •

Copy link
Copy Markdown
Contributor

Fixes issue #263098 that was introduced in #235174

Problem:
xLeftBoundary is not correctly at where the left most line of the editor content, it is blocking clicking on the first column

Solution:
Remove horizontalScrollPadding from the cursor leaving editor content on the left side check. horizontalScrollPadding should not have been added to the left side check because layoutInfo.contentLeft correctly matches the left most point of the editor content

…issue that when you click on the last character it jumps to the end of the line
@aiday-mar Aiday Marlen Kyzy (aiday-mar) changed the title Fixes issue 263098, "Caret jumps to column 0 when clicking between first two characters" Fixes "Caret jumps to column 0 when clicking between first two characters" Sep 4, 2025
@alexdima

Copy link
Copy Markdown
Member

Thank you!

@alexdima
Alexandru Dima (alexdima) merged commit 565e99d into microsoft:main Sep 4, 2025
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants