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

BUG: slow absolute drag on Chrome #5003

Closed
2 tasks done
ngoc199 opened this issue Mar 23, 2023 · 1 comment
Closed
2 tasks done

BUG: slow absolute drag on Chrome #5003

ngoc199 opened this issue Mar 23, 2023 · 1 comment

Comments

@ngoc199
Copy link

ngoc199 commented Mar 23, 2023

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome 111

Reproducible demo link

https://jsfiddle.net/9zf4kd6e/ - this is the demo of Designer Mode

Describe the bug

How to reproduce the bug?

  1. Add an image component with dragMode absolute
  2. Upload a large enough SVG image. You can use this image
  3. Drag the image around
  4. Drag the text component around

What is the expected behavior?

  • The SVG image is not resized on drag
  • The SVG image is moved fast to the right position
  • The components are moved fast when there is a large SVG image

What is the current behavior?

  • The SVG image is automatically resized on drag following the cursor position. After manually resizing the image, it can be dragged without being resized.
  • The SVG image is moved slowly.
  • The other components are moved slowly when there is a large SVG image.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@artf
Copy link
Member

artf commented Mar 27, 2023

@ngoc199 I'm addressing most of the issue about absolute mode here. I think the resize issue could be easily added here but the large embedded SVG image (by default, without an external asset storage, images are inlined) it's seems more like a browser limit

@artf artf closed this as completed Mar 27, 2023
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