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
Enable the absolute drag mode editor.editor.set('dmode', 'absolute')
Set zoom to 50 editor.Canvas.setZoom(50)
Select a component.
Press the move button on the toolbar
What is the expected behavior?
The distance between the cursor and the element is the same as when the canvas is zoomed at 100.
What is the current behavior?
The distance between the cursor and the element is relatively far.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
hanzuken
changed the title
BUG: Element absolute position is different from Cursor position when dragging in the zoomed canvas
BUG: Element absolute position is different from Cursor position when moving in the zoomed canvas
Jul 14, 2023
GrapesJS version
What browser are you using?
Chrome version 114.0.5735.199 (Official Build) (64-bit)
Reproducible demo link
https://grapesjs.com/demo.html
Describe the bug
How to reproduce the bug?
editor.editor.set('dmode', 'absolute')
editor.Canvas.setZoom(50)
What is the expected behavior?
The distance between the cursor and the element is the same as when the canvas is zoomed at 100.
What is the current behavior?
The distance between the cursor and the element is relatively far.
Code of Conduct
The text was updated successfully, but these errors were encountered: