Skip to content

Tracked resolution of Mac Retina displays is wrong #10289

@tsteur

Description

@tsteur

It records res = 2560x1600 because window.devicePixelRatio = 2 and actual resolution is 1280x800. It should actually report 1280x800 because it does not show 2560x600, it only shows more pixels "per pixel". Similar issue might be for smartphones but haven't tested.

Related code: https://github.com/piwik/piwik/blob/2.16.1/js/piwik.js#L5022-L5024

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions