BUG: Element absolute position is different from Cursor position when moving in the zoomed canvas
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
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?
- 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
Answers (1)
Issues related to Absolute mode are tracked here https://github.com/GrapesJS/grapesjs/issues/3770
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5229
BUG: textnode with content "null" is rendered as "null" not whitespace
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome Version 114.0.5735.199 (Official Buil...
Issue #5046
BUG: is there any way to remove cross svg on selected default value of Float, Position and text-align
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 111.0.5563.147 (Official Build) (6...
Issue #4094
BUG: When drag and drop block into editor in Chrome, not able to drag and drop block
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 97.0.4692.71 (Official Build) (64-...
Issue #3866
BUG: SVG Not rendering when inside any HTML Element
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 94.0.4606.81 (Official Build) (64-bi...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.