skmail / vue-free-transform

VueJS Free transform tool component
MIT License
180 stars 29 forks source link

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

Open demobiel opened 6 years ago

demobiel commented 6 years ago

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.

san-kumar commented 5 years ago

Hi, did you find a solution for this?