-
Notifications
You must be signed in to change notification settings - Fork 39.3k
Zoom offsets the visible cursor #26151
Copy link
Copy link
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityEditor basic functionalitylinuxIssues with VS Code on LinuxIssues with VS Code on LinuxverifiedVerification succeededVerification succeededzoomVS Code window zoom issuesVS Code window zoom issues
Milestone
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalityEditor basic functionalitylinuxIssues with VS Code on LinuxIssues with VS Code on LinuxverifiedVerification succeededVerification succeededzoomVS Code window zoom issuesVS Code window zoom issues
I recently noticed a bug where the visible editing cursor and selection are offset to where VSCode thinks the cursor is. This happens when zooming in and seems to be dependent on the font you are using.
The bug happens for me when using the Hack Font under Linux. Using that font under Windows did not result in an offset of the cursor / selection. Using Ubuntu Mono as my font did not trigger the bug, nor was increment the font size instead of zooming.
The following pictures illustrate the issue:
Correct selection using Ubuntu Mono:

Offset selection using Hack:

In both cases
node.getRight()has been selected and hitting backspace will delete it.This also happens around the 80 column mark, not just far to the right, note the cursor ontop of the equal sign:

Steps to Reproduce:
Maybe Related: