Skip to content

Formula for calculating physical screen size not working on MacOS with system scaling #238

@skorphil

Description

@skorphil
width.value = screen.width * dppx;
height.value = screen.height * dppx;

The point is - dppx value do not changes when MacOS scaling changes. But screen.width is changing.
Default scaling in macOS macbook pro 13:

screen.width = 1440
dppx = 2

Larger scaling in macOS macbook pro 13:

screen.width = 1280
dppx = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions