vscode: Inconsistent mouse cursor when hovering text in 1.30.0

  • VSCode Version: 1.30.0
  • OS Version: 4.19.9-arch1-1-ARCH

Upgrading from 1.29.0 to 1.30.0 seems to cause the mouse cursor to behave unexpectedly. For example, when hovering a line of text in the editor there seems to be some kind of “invisible barrier”, to the right of which the cursor turns from text cursor to a normal cursor.

Steps to Reproduce:

  1. Create a new file (File -> New File).
  2. Type a long line of text, longer than 50% of the window’s width.
  3. Hover the line of text from left to right. Somewhere around the middle of the window, the cursor changes from a text cursor to a normal cursor.

Resizing the window moves the point of change.

The expected behavior would be to see a text cursor as long as the user is hovering text inside the editor, and a normal cursor when hovering menus, for example.

This happens also on latest insiders build, with default config and no extensions.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 26 (21 by maintainers)

Most upvoted comments

Ah it appears that my distro (elementary OS) was auto scaling my display by 200% as well. Setting the scale factor to 100%, though unusable, does fix the cursor problem.

I noticed in the chrome dev tools that the calculated pixel width for 100% would be half the pixels that were actually being used (for example, the chrome dev tools thought my full screen code window was 1500px wide, but my display is 3000px wide)