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

On dragging SVG elements location of drag controls is affected by the parent element's margin. #498

Closed
pinoybai opened this issue Jul 3, 2021 · 3 comments
Labels
bug Something isn't working complete
Milestone

Comments

@pinoybai
Copy link

pinoybai commented Jul 3, 2021

Environments

Description

The location of the drag/resize controls frame is working perfectly fine on other elements but when choosing the SVG element it is affected by the margin of the parent element (In the example, the body's margin and padding). so the 'Transform3d' x and y value is offsetting with the body's margin and padding.

Could you please help me fix this?

@daybrush daybrush added the bug Something isn't working label Jul 8, 2021
@daybrush
Copy link
Owner

daybrush commented Jul 8, 2021

@pinoybai

I think it's a bug. I'll let you know after I fix it.

daybrush added a commit that referenced this issue Jul 10, 2021
@daybrush daybrush added this to the 0.26.0 milestone Jul 10, 2021
@daybrush
Copy link
Owner

@pinoybai

moveable 0.26.0 is released.
https://codepen.io/daybrush/pen/MWmjrOQ

@pinoybai
Copy link
Author

pinoybai commented Jul 11, 2021

@daybrush Thank you for your update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete
Projects
None yet
Development

No branches or pull requests

2 participants