Skip to content

Selecting using mouse doesn't work on some lines with transform: scale #2347

@svick

Description

@svick

monaco-editor version: latest on Playground
Browser: Edgium
OS: Windows
Playground code that reproduces the issue:

JS:

monaco.editor.create(document.getElementById("container"), {
	value: `using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;`,
	language: "csharp"
});

CSS:

body {
    transform: scale(0.8);
}

With the above CSS, selecting some lines of code using the mouse does not work. Specifically, it happens for me for line 8 in the above code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions