You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
Components can be dropped to the cursor position even if the dragmode is set to absolute and a zoom is applied on the canvas.
Current behavior:
When dragmode is absolute and there is a zoom value, the components are dropped away from the cursor position. (the distance/offset depends on the zoom level)
Steps to reproduce:
Open jsfiddle above (with editor.Canvas.setZoom(50))
Try to add a new text component
Check the distance between the cursor position and the component's position.
The distance/offset depends on the zoom value.
The editor.Canvas.setZoom function uses a transform:scale() CSS property and then the 'drop' position is not accurate anymore.
The text was updated successfully, but these errors were encountered:
Should be fixed in this branch https://github.com/artf/grapesjs/tree/multi-frame
Multi framing is still far from being complete but I hope to merge soon that branch (big canvas refactoring but without breaking changes), definitely not for this release (should be published this days) but probably in the next one.
Components are not dropped to the exact position if dragmode set to absolute and there is a zoom value applied on the canvas.
GrapesJS version:0.15.8
The issue can be reproduced in the demo as well:
https://jsfiddle.net/y8m1x4a3/
Expected behavior:
Components can be dropped to the cursor position even if the dragmode is set to absolute and a zoom is applied on the canvas.
Current behavior:
When dragmode is absolute and there is a zoom value, the components are dropped away from the cursor position. (the distance/offset depends on the zoom level)
Steps to reproduce:
The distance/offset depends on the zoom value.
The editor.Canvas.setZoom function uses a transform:scale() CSS property and then the 'drop' position is not accurate anymore.
The text was updated successfully, but these errors were encountered: