Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
demobiel opened this issue Oct 8, 2018 · 1 comment

Comments

@demobiel
Copy link

demobiel commented Oct 8, 2018

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.

@demobiel demobiel changed the title When the "workspace" is zoome via CSS, the object is not resized as it should When the "workspace" is zoomed via CSS, the object is not resized as it should Oct 8, 2018
@san-kumar
Copy link

Hi, did you find a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants