Skip to content

Conversation

@remcohaszing
Copy link
Contributor

When clicking the 10 left-most pixels of the editor, the cursor was moved to the beginning of the line. When clicking the 10 right-most characters of the editor, the cursor was moved to the end of the line. This is not correct in RTL. Clicking the left pixels should move the cursor to the left. Clicking the right pixels should move the cursor to the right.

This was an oversight in #255455.

Also the horizontalScrollPadding is hardcoded to 10. I noticed in my own editor this means I can’t put the cursor between the first two characters in VSCode. It will always snap to the beginning of the line. Should this be made configurable (in a separate PR)?

When clicking the 10 left-most pixels of the editor, the cursor was
moved to the beginning of the line. When clicking the 10 right-most
characters of the editor, the cursor was moved to the end of the line.
This is not correct in RTL. Clicking the left pixels should move the
cursor to the left. Clicking the right pixels should move the cursor to
the right.
@remcohaszing
Copy link
Contributor Author

Friendly ping @aiday-mar :)

This is a bug in a feature that I myself introduced. I would love to see this fix land.

@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Dec 2, 2025
@aiday-mar aiday-mar enabled auto-merge (squash) December 2, 2025 15:51
@remcohaszing
Copy link
Contributor Author

This was approved 2 weeks and marked to auto-merge, but it’s still not merged. Looks like a prerequisite is missing. I think CI needs to run?

@aiday-mar aiday-mar merged commit 0fee21b into microsoft:main Dec 15, 2025
17 checks passed
@remcohaszing remcohaszing deleted the fix-rtl-editor-edge-click branch December 15, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants