-
Notifications
You must be signed in to change notification settings - Fork 126
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
Flickering when dragging a group with an SVG in it #127
Comments
And I thought this plug-in was finally stable... |
Yes it seems a pretty delicate matter, when I drag the group only the inner svg is moved via x and y attrs, so I tried to make a custom drag logic applying a translation to the g element and situation is better but still buggy |
This is actually the correct behavior because groups just inherit the position if it's content. So if you love the content the group moves. But obviously something is not working out here |
A possible work-around - move each element of the group manually:
|
is there any news about this? |
Sorry for never getting back to this. Still a bug tho. Working example: |
Found a FF bug while working on this: https://bugzilla.mozilla.org/show_bug.cgi?id=1905012 But that doesnt seem to be the issue because the same behavior can be observed in chrome |
Found a second FF bug while working on this which makes the fix really weird: |
I have a group element
<g>
containing several elements, there's always an<svg>
and optionally other stuff. The drag and drop works but it flickers a lot and the drop position is not correct.https://codepen.io/lucafaggianelli/pen/eYzVmxx?editors=0010
Moreover I need to resize the loaded image inside the group and if I do that, the situation is worse as the element jump out of the window (literally :))
The text was updated successfully, but these errors were encountered: