Skip to content

When the "workspace" is zoomed via CSS, the object is not resized as it should #4

@demobiel

Description

@demobiel

So I added zoom:50% to the css class definition for "workspace". As you can see the rescaling now is a little weird.
See this example: https://codesandbox.io/s/y27rpz7mnj

I that is because you use event.pageX and event.pageY for calculation without taking into account if there is a zoom level applied or not.

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