Skip to content

MouseConstraint does not work with pixelRatio above 1 #686

@alexandernanberg

Description

@alexandernanberg

What

When using pixelRatio: 'auto' the mouse constraint stops working on retina screens. The shapes "real" position is offset quite a lot, so you have to try to grab them where they are not drawn.

Why

Think that some calculation does not take the pixelRatio into account. Dug around a bit in the source but couldn't the cause.

Reproduction

https://codesandbox.io/s/nkm7pzmvn0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions